Skip to content

Document

Unofficial

Augments the built-in Document interface.

Signature:

export interface Document

Properties

Property Type Description
_EVENTS? {
K in keyof [DocumentEventMap]?: EventListenerInfo[];
}
The event listeners of the document.

Methods

Method Returns Description
off(this, type, selector, listener, options?) void Removes an event listener from the document.
on(this, type, selector, listener, options?) void Adds an event listener to the document.

Links to this page: