beforeeditfocus | onbeforeeditfocus event
Fires before an object contained in an editable element enters a UI Activation state or when an editable container object is control selection.
Syntax
| HTML Attribute | <element onbeforeeditfocus = "handler(event)"> |
|---|---|
| Event Property | object.onbeforeeditfocus = handler; |
| attachEvent Method | object.attachEvent("onbeforeeditfocus", handler) |
| addEventListener Method | object.addEventListener("beforeeditfocus", handler, useCapture) |
Event information
| Synchronous | No |
|---|---|
| Bubbles | Yes |
| Cancelable | Yes |
Event handler parameters
- pEvtObj [in]
-
Type: IHTMLEventObj
Standards information
There are no standards that apply here.
Remarks
For the onbeforeeditfocus event to fire, document elements must be in edit mode. One way to invoke edit mode is to set the designMode property to On.
The onbeforeeditfocus event differs from the onfocus event. The onbeforeeditfocus event fires before an object enters a UI Activation state, whereas the onfocus event fires when an object has focus.
As of Microsoft Internet Explorer 5.5, Web authors can also set the contentEditable attribute to true on the body element, and if necessary, to specific elements in the body, to invoke edit mode.
Moves the object into a UI Activation state.
To invoke this event, do one of the following:
- Press the ENTER key or click an object when it has focus.
- Double-click an object.
The pEvtObj parameter is required for the following interfaces:
- HTMLAnchorEvents2
- HTMLAreaEvents2
- HTMLButtonElementEvents2
- HTMLControlElementEvents2
- HTMLDocumentEvents2
- HTMLElementEvents2
- HTMLFormElementEvents2
- HTMLImgEvents2
- HTMLFrameSiteEvents2
- HTMLInputFileElementEvents2
- HTMLInputImageEvents2
- HTMLInputTextElementEvents2
- HTMLLabelEvents2
- HTMLLinkElementEvents2
- HTMLMapEvents2
- HTMLMarqueeElementEvents2
- HTMLObjectElementEvents2
- HTMLOptionButtonElementEvents2
- HTMLScriptEvents2
- HTMLSelectElementEvents2
- HTMLStyleElementEvents2
- HTMLTableEvents2
- HTMLTextContainerEvents2
- HTMLWindowEvents2
See also
- a
- abbr
- acronym
- address
- applet
- area
- b
- bdo
- big
- blockQuote
- body
- button
- center
- cite
- code
- custom
- dd
- del
- dfn
- dir
- div
- dl
- document
- dt
- em
- fieldSet
- font
- form
- hn
- i
- input type=button
- input type=checkbox
- input type=email
- input type=file
- input type=hidden
- input type=image
- input type=number
- input type=password
- input type=radio
- input type=range
- input type=reset
- input type=search
- input type=submit
- input type=tel
- input type=text
- input type=url
- ins
- isIndex
- kbd
- label
- legend
- li
- listing
- marquee
- menu
- noBR
- object
- ol
- p
- plainText
- pre
- q
- rt
- ruby
- s
- samp
- select
- small
- span
- strike
- strong
- sub
- sup
- table
- td
- textArea
- tr
- tt
- u
- ul
- var
- xmp