Selecting Text Upon Focus : TextField : Form Control JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Form Control » TextField »

 

Selecting Text Upon Focus



<html>
<head>
<title>Selecting Text Upon Focus</title>
</head>
   
<body>
    <form name="form1" method="POST">
    <h2>Selecting Text Upon Focus</h2>
    <p>Username:<br>
    <input type=text size=25 maxlength=256 name="Username" onFocus="this.select()"><br>
    Browser used:<br>
    <input type=text size=25 maxlength=256 name="Browser" onFocus="this.select()"><br>
    Email address:
    <strong> <br>
    </strong>
    <input type=text size=25 maxlength=256 name="EmailAddress"onFocus="this.select()">
    </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