mozilla

Revision 454445 of FocusEvent

  • Revision slug: Web/API/FocusEvent
  • Revision title: FocusEvent
  • Revision id: 454445
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{eventref("Event", "UIEvent")}}

The FocusEvent interface represents focus-related events like {{event("focus")}}, {{event("blur")}}, {{event("focusin")}}, or {{event("focusout")}}.

Properties

Inherits properties from its parent {{domxref("UIEvent")}}, and indirectly from {{domxref("Event")}}.

FocusEvent.relatedTarget {{readonlyInline}}
Is an {{domxref("EventTarget")}} representing a secondary target for this event. As in some cases (like when tabbing in or out a page), this property may be set to null for security reasons.

Methods

No specific method; inherits methods from its parent {{domxref("UIEvent")}}, and indirectly from {{domxref("Event")}}.

Specifications

 

 

Revision Source

<p>{{eventref("Event", "UIEvent")}}</p>
<p>The <strong><code>FocusEvent</code></strong> interface represents focus-related events like {{event("focus")}}, {{event("blur")}}, {{event("focusin")}}, or {{event("focusout")}}.</p>
<h2 id="Properties">Properties</h2>
<p><em>Inherits properties from its parent {{domxref("UIEvent")}}, and indirectly from {{domxref("Event")}}</em>.</p>
<dl>
  <dt>
    <code>FocusEvent.relatedTarget</code> {{readonlyInline}}</dt>
  <dd>
    Is an {{domxref("EventTarget")}} representing a secondary target for this event. As in some cases (like when tabbing in or out a page), this property may be set to <code>null</code> for security reasons.</dd>
</dl>
<h2 id="Methods">Methods</h2>
<p><em>No specific method; inherits methods <em>from its parent {{domxref("UIEvent")}}, and indirectly from {{domxref("Event")}}.</em></em></p>
<h2 id="Specifications">Specifications</h2>
<p>&nbsp;</p>
<p>&nbsp;</p>
Revert to this revision