August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onBlur="command"
The onBlur event handler of the Password object is used to handle the event that occurs when the focus is removed from the password box.
Listing 7.420 shows an example of how the onBlur event handler is used. When the focus is removed from the Password object, the setTxt() function is called to display a message in the text box.
<html> <head> <title> Example of the password onBlur event handler</title> </head> <body> <script language="JavaScript"> <!--Hide // function that sets the text value function setTxt(){ document.form1.txt.value="setup"; } // End Hide ---> </script> ... |
Read now
Unlock full access