Update and rename html_form2.html to html_form3.html

This commit is contained in:
Joe James
2020-03-04 10:12:43 -06:00
committed by GitHub
parent 0f58193e09
commit 6b8f5f094a

View File

@@ -1,6 +1,7 @@
<html>
<head>
<!-- You need the javascript alert.js to go with this -->
<!-- This script will open an Alert window and show Name -->
<script type="text/javascript">
window.onload = function(){
document.getElementById('send').onclick = function(e){
@@ -10,9 +11,11 @@ window.onload = function(){
}
</script>
</head>
<body>
<form method="post">
<input type="text" name="name" id="name" />
<!-- When Submit button is clicked, name is posted and shown in the Alert window. -->
<input type="submit" name="send" id="send" value="send" />
</form>
</body>