Javascript Reference
Categories: onbeforeeditfocus

javascript onbeforeeditfocus Description

@July 28, 2009, 8:55 a.m.
onbeforeeditfocus Firefox/Netscape/NN n/a IE 5(Win) Chrome/Safari/DOM n/a  


Bubbles: Yes; Cancelable: Yes  

Fires just before an editable element receives official focus by a user clicking or tabbing to the element. Editable elements include text-oriented form controls and body elements set to be editable (see the IE 5.5 contentEditable property of all elements). A function invoked from this event handler can perform additional scripted actions, such as setting the color of the element text, before the user begins editing the content.

Typical Targets

Text form controls; rendered elements in edit mode (IE 5.5 or later); content governed by the DHTML Editing ActiveX control (see

Powered by Linode.