August 1999
Intermediate to advanced
1488 pages
72h 53m
English
password.focus()
The focus() method of the Password object sets the focus to the password box.
Listing 7.416 shows an example of how the focus() method is used to move the focus back 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> |
Read now
Unlock full access