A RetroSearch Logo

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

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/FocusEvent below:

FocusEvent: FocusEvent() constructor - Web APIs

FocusEvent: FocusEvent() constructor

Baseline Widely available

The FocusEvent() constructor returns a newly created FocusEvent object with an optional EventTarget. When the event has both a source and a destination, the relatedTarget value must be set to the other target.

Syntax
new FocusEvent(type)
new FocusEvent(type, options)
Parameters

The FocusEvent() constructor also inherits arguments from UIEvent() and from Event().

type

A string with the name of the event. It is case-sensitive and browsers set it to blur, focus, focusin, or focusout.

options Optional

An object that, in addition of the properties defined in UIEvent(), can have the following properties:

An EventTarget representing the secondary target of a FocusEvent. It defaults to null.

Specifications Browser compatibility See also

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