InterestEvent

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{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

  • Popover API
  • Using interest invokers