Javascript Reference
Categories: onbeforedeactivate

javascript onbeforedeactivate Description

@March 15, 2008, 1:22 a.m.
onbeforedeactivateFirefox/Netscape/NN n/a IE 5.5(Win) Chrome/Safari/DOM n/a  

Bubbles: Yes; Cancelable: Yes  

Fires just before an object is about to yield activation to another object because the user clicked on another element, tabbed to another element, or a script invoked the setActive( ) or focus( ) method of another element. If an element has focus and is the active element, the following event sequence fires en route to losing focus: onbeforedeactivate, ondeactivate, and onblur. Because onbeforedeactivate is cancelable (but ondeactivate is not), cancel this event to prevent an element from deactivating or losing focusprovided you have a good reason to do this other than annoying your visitors.

Typical Targets

All rendered elements, plus the document and window objects.

Powered by Linode.