The onFocus event handler handles the Focus event for the password box.
<html> <head> <title> Example of the password onFocus event handler</title> </head> <body> <script language="JavaScript"> <!-- function set(){ alert("123"); } --> </script> <form name="form1"> <input type="PASSWORD" Name="pass" size=10 onFocus=set()> <br> <input type="BUTTON" value="Show Formname" > </form> </body> </html>