<html>
<head>
<title>Assign a default value to a Text object</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
function findBrowser() {
document.form1.Browser.value = navigator.appName
}
// -->
</SCRIPT>
</head>
<body onLoad="findBrowser()" >
<form name="form1" method="POST">
<h2>Assign a default value to a Text object</h2>
<p>Username:<br>
<input type=text size=25 maxlength=256 name="Username">
<br>Browser used:<br>
<input type=text size=25 maxlength=256 name="Browser">
<br>Email address:<strong> <br>
</strong>
<input type=text size=25 maxlength=256 name="EmailAddress"></p>
<h2>
<input type=submit value="Register">
<input type=reset value="Clear">
</h2>
</form>
</body>
</html>
|