Back to Content

InterestEvent

files/en-us/web/api/interestevent/index.md

latest1.4 KB
Original Source

{{APIRef("Popover API")}}{{SeeCompatTable}}{{non-standard_header}}

The InterestEvent interface represents an event that fires when interest is shown or lost on an interest invoker.

This is the event object for the {{domxref("HTMLElement.interest_event", "interest")}} and {{domxref("HTMLElement.loseinterest_event", "loseinterest")}} events, which fire on the target element when interest is shown or lost, respectively.

{{InheritanceDiagram}}

Constructor

  • {{DOMxRef("InterestEvent.InterestEvent", "InterestEvent()")}} {{experimental_inline}} {{non-standard_inline}}
    • : Creates an InterestEvent object.

Instance properties

This interface inherits properties from its parent, {{DOMxRef("Event")}}.

  • {{DOMxRef("InterestEvent.source")}} {{ReadOnlyInline}} {{experimental_inline}} {{non-standard_inline}}
    • : An {{domxref("Element")}} object instance that represents the interest invoker element on which interest was shown or lost to fire the event.

Examples

See the Using interest invokers guide and the {{domxref("HTMLElement.interest_event", "interest")}} event reference page for examples.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also