August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onBlur="command"
The onBlur event handler of an instance of a Text object is fired when the focus is moved away from that particular text box. Care should be taken when using this event handler, because it is possible to get into an infinite loop when using the onFocus event handler or focus() method.
Listing 7.499 contains three text boxes, one of which has the onBlur event handler intercepted within its tag. The third text box is used for a counter for the number of times the onBlur event handler is fired.
In the script, the event calls a function that reassigns the first text box focus. The result of this is that when a user tries to click or tab ...
Read now
Unlock full access