Assign a default value to a Text object : TextField : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » TextField »

 

Assign a default value to a Text object



<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>


           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Form Control
» TextField