2020-02-16 12:40:35 -06:00
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<!-- You need the javascript alert.js to go with this -->
|
2020-03-04 10:12:43 -06:00
|
|
|
<!-- This script will open an Alert window and show Name -->
|
2020-02-16 12:40:35 -06:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
window.onload = function(){
|
|
|
|
|
document.getElementById('send').onclick = function(e){
|
|
|
|
|
alert(document.getElementById("name").value);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
2020-03-04 10:12:43 -06:00
|
|
|
|
2020-02-16 12:40:35 -06:00
|
|
|
<body>
|
|
|
|
|
<form method="post">
|
|
|
|
|
<input type="text" name="name" id="name" />
|
2020-03-04 10:12:43 -06:00
|
|
|
<!-- When Submit button is clicked, name is posted and shown in the Alert window. -->
|
2020-02-16 12:40:35 -06:00
|
|
|
<input type="submit" name="send" id="send" value="send" />
|
2020-02-16 11:35:00 -06:00
|
|
|
</form>
|
2020-02-16 12:40:35 -06:00
|
|
|
</body>
|
2020-02-16 11:35:00 -06:00
|
|
|
</html>
|