August 1999
Intermediate to advanced
1488 pages
72h 53m
English
select.blur()
The blur() method of the Select object removes focus from the select box. Note that this does not mean that the selected option is unselected, but rather, the focus on this option and the select box as a whole are removed. Be careful when using this method in conjunction with the Select.focus() method. It can lead to a focus/blur loop, where the browser blurs a focus as soon as it is done, and vice versa.
Listing 7.464 has a multiple select box and a button. If the user selects any of the options in the box and then clicks the Click Here to Remove Focus button, the option and entire select box will no longer have focus.
Read now
Unlock full access