Files
jps/html_form2
Joe James 1c7706939c Create html form 2
opens a popup alert with the name in it.
2020-02-14 12:02:46 -06:00

19 lines
386 B
Plaintext

<html>
<head>
<script type="text/javascript">
window.onload = function(){
document.getElementById('send').onclick = function(e){
alert(document.getElementById("name").value);
return false;
}
}
</script>
</head>
<body>
<form method="post">
<input type="text" name="name" id="name" />
<input type="submit" name="send" id="send" value="send" />
</form>
</body>
</html>