JavaScript - Hello You Program


Home

Author: Chip Goss
Date: January 8, 2002
Info:
This is Java Script imbeded inside HTML.:
 
<html>
<head>
<title>Hello World>/title>
<script language = "JavaScript">
function hello_you() {
  alert("Hello " + document.frmName.name.value);
}
</script>
<body onLoad = "document.frmName.name.focus();">
<form name = "frmName">
What is your name?
<input type = "text" name = "name" value = "">
<input type = "button" name = "submit" value = "Submit" onClick = "hello_you()">
</form>
</body>
</head>
</html>

Home