Popover API
The InterestEvent() constructor creates a new InterestEvent object.
Syntax
new InterestEvent(type, init)
Parameters
type- : A string representing the type of event. For
InterestEvent, this is alwaysinterestorloseinterest.
- : A string representing the type of event. For
init- : An object containing the following property:
source- : An Element representing the interest invoker element on which interest was shown or lost.
- : An object containing the following property:
Examples
Normally, you would not use this constructor manually. A new InterestEvent object is constructed when a handler is invoked as a result of a relevant event firing.
See the Using interest invokers guide and the HTMLElement.interest_event event reference page for examples.
Specifications
Browser compatibility
See also
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
