A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/dom/Event/beforeactivate below:

beforeactivate · WebPlatform Docs

beforeactivate Overview Table Synchronous No Bubbles No Target dom/Element Cancelable No Default action ?

## Notes

Remarks

Each document may have up to one active element. Set the active element with the setActive or focus methods. Using the setActive method has no effect on document focus. Using the focus method on an individual element causes the element to gain focus and become the active element. Using the focus method on a document that does not have the focus moves the document to the front of the display. Additionally, the document’s active element gains focus. For a given display, only one element has focus at any given time. Striking a key directly affects only the element with focus. Events fired by that keystroke may be scripted to affect other documents and child elements. With Microsoft Internet Explorer 5.5 and later, focus on a Document, and the active element of a document can be managed separately. With Microsoft Internet Explorer 6 and later, use the onbeforeactivate event to cancel setting an element as active. Canceling an element’s onbeforeactivate event has three different behaviors, depending on the action which fired the event.

Note The onbeforeactivate event cannot be canceled when fired programmatically. Change activation from the event.fromElement to the event.srcElement. To invoke this event, do one of the following:

The pEvtObj parameter is required for the following interfaces:

Syntax Standards information

There are no standards that apply here.

Event handler parameters
pEvtObj [in]
Type: ****IHTMLEventObj****
See also Related pages Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4