FocusEvent Class

https://w3c.github.io/uievents/#focusevent

public sealed class FocusEvent : UIEvent
Inheritance
UIEvent FocusEvent

Constructors

NameDescription
FocusEvent(string, FocusEventInit?)Creates a focus event of the given type with the given initialization dictionary.

FocusEvent(string, FocusEventInit?)

UIEvents.cs

Creates a focus event of the given type with the given initialization dictionary.

public FocusEvent(string type, FocusEventInit? eventInitDict = null)

Properties

NameDescription
RelatedTargetGets the secondary target of the focus change (the element losing or receiving the focus), or null.

RelatedTarget

UIEvents.cs

Gets the secondary target of the focus change (the element losing or receiving the focus), or null.

public EventTarget? RelatedTarget { get; }