Javascript Reference
Categories: onfocusin

javascript onfocusin Description

@March 15, 2008, 1:22 a.m.
onfocusin, onfocusoutFirefox/Netscape/NN n/a IE 6 Chrome/Safari/DOM n/a  

Bubbles: Yes; Cancelable: No  

Fire when the current element receives focus (onfocusin) or loses focus (onfocusout). These events fire prior to the focus and blur events, respectively. Microsoft suggests that you can use these event handlers to perform style changes (anywhere in the document) in anticipation of an element receiving or losing focus, without disturbing the normal focus and blur actions.

 
Typical Targets

All rendered elements that are capable of receiving focus normally (such as form controls and links), plus any other rendered element for which the tabindex attribute is assigned a value.


Powered by Linode.