Inside JavaScript

The blur Method

You use the blur method to remove the focus from an element. (After the focus is gone, the element will no longer be the target for keystrokes.) You can see the support for this method in Table 6.10.

Table 6.10. The blur Method

Method

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

blur()

x

x

x

x

x

x

x

x

x

x

 

No return value

This method pairs with the focus method, which gives an element the focus. (The focus method is coming up in this chapter.)

Категории