August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onBlur="command"The onBlur event handler of an instance of a Textarea object is fired when the focus is moved away from that particular text area. 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.513 contains three text areas, one of which has the onBlur event handler used within its tag. The third text box is used for a counter for the number of times the onBlur event handler is used.
In the script, the event calls a function that reassigns the first text area focus. The result of this is that when a user tries to click or tab away ...
Read now
Unlock full access