Files
jps/html/html_form2.html
2020-02-16 12:40:35 -06:00

20 lines
444 B
HTML

<html>
<head>
<!-- You need the javascript alert.js to go with this -->
<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>