Password.onBlur

JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax

onBlur="command"

Description

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.

Example

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.

Listing 7.420 Example of the onBlur Event Handler
 <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> ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.