Password.select() : Password : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » Password »

 

Password.select()








The select() method selects the value entered into the password box.

The selected value is highlighted.












<html>
    <head>
    <title> Example of the password select method</title>
    </head>
    <body>
    <form name="form1">
    <input type="PASSWORD" Name="pass" size=10>
    <br>
    <input type="BUTTON" value="Select Password" ?onClick=document.form1.pass.select()>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» Password