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