Mega Code Archive

 
Categories / JavaScript Tutorial / Form
 

Password onBlur

The onBlur event handler handles the event that occurs when the focus is removed from the password box. <html>     <head>     <title> Example of the password onBlur event handler</title>     </head>     <body>     <script language="JavaScript">     <!--     function setTxt(){          alert("setup");     }     -->     </script>     <form name="form1">     <input type="PASSWORD" Name="pass" size=10 onBlur=setTxt()>     </form>     </body>     </html>