web api interface
InterestEvent
Limited availability
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 interest and loseinterest events, which fire on the target element when interest is shown or lost, respectively.
Constructor
InterestEvent()Experimental- : Creates an
InterestEventobject.
- : Creates an
Instance properties
This interface inherits properties from its parent, Event.
sourceRead only Experimental- : An
Elementobject instance that represents the interest invoker element on which interest was shown or lost to fire the event.
- : An
Examples
See the Using interest invokers guide and the interest event reference page for examples.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.