I have two separate files, one HTML, the other ASP. Ive looked at numerous guides, and i still cant fix it. When I save these files and test them out, the message is always "null".Why doesnt this work?
First file, html:
<!DOCTYPE html>
<html>
<body>
<form name="formName" action="html_form_action.asp" method="get">
<input type="text" id="name">
<input type="submit" value="Enter">
</form>
</body>
</html>
Second, asp file:
<!DOCTYPE html>
<html>
<body>
<script>
var x=document.getElementById("name");
alert(x);
</script>
</body>
</html>