I have two HTML pages: form.html and display.html. In form.html, there is a form:
<form action="display.html" method=Get >
<input type="text" name="serialNumber" />
<input type="submit" value="Submit" />
</form>
The form data is sent to display.html. I want to display and use the form data serialNumber in display.html, something like the following:
<body>
<div id="write"><p>The serial number is: </p></div>
<script> function show()
{
document.getElementById("write").innerHTML = serialNumber;
}
</script>
</body>