August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.form. button.blur()
The blur() method removes the focus from a button.
Warning
In the UNIX versions of Navigator 2 and Navigator 3, the blur() method does not work for buttons.
In Listing 7.22, two buttons are created by using the <input> tag to demonstrate focus. The first button retains focus after being clicked, but the second button loses focus as soon as it is clicked due to the use of the blur() method. There are not a lot of uses for this method, but it is provided for your use all the same.
<html> <h2>The Button Focus Game</h2> Click both buttons. Notice that the second ... |
Read now
Unlock full access