August 1999
Intermediate to advanced
1488 pages
72h 53m
English
submit.blur()
The blur() method of the Submit object removes the focus from the submit button. Be careful when using this method in conjunction with the Submit.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.480 has a text box and a submit button. If the user clicks the Click Here to Remove Focus button, the button will no longer be focused. The best way to see this is to tab to the button and then click it. When tabbing to the button, you should see that it becomes selected.
<html> ... |
Read now
Unlock full access