Password.blur() : Password : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » Password »

 

Password.blur()







The blur method removes the focus from the password box.












<html>
    <head>
    <title> Example of the blur method of the password object</title>
    </head>
    <body>
    <script language="JavaScript">
    <!--
    function shift(){
         document.form1.pass.blur();
         document.form1.txt.value="Get Focus";
    }
    -->
    </script>
    <form name="form1">
    <input type="PASSWORD" Name="pass" size=10>
    <br>
    <input type="Text" name="txt" size=10>
    <br>
    <input type="BUTTON" value="Show Password" onClick=shift()>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» Password