The focus() method sets the focus to the password box.
<html> <head> <title> Example of the password focus method</title> </head> <body> <form name="form1"> <input type="PASSWORD" Name="pass" size=10> <br> <input type="BUTTON" value="Show Password" onClick=document.form1.pass.focus()> </form> </body> </html>