Event
The Element interface represents an object within a DOM document. This interface describes methods and properties common to all kinds of elements. Specific behaviors are described in interfaces which inherit from Element but add additional functionality.
Constructor Summary
Public Constructor | ||
public |
constructor(type: string) |
Member Summary
Public Members | ||
public |
A boolean indicating whether the event bubbles up through the DOM or not. |
|
public |
A boolean indicating whether the event is cancelable. |
|
public |
A reference to the currently registered target for the event. |
|
public |
Indicates whether or not event.preventDefault() has been called on the event. |
|
public |
Indicates which phase of the event flow is being processed. |
|
public |
|
|
public |
Indicates whether or not the event was initiated by the browser (after a user click for instance) or by a script (using an event creation method) |
|
public |
|
|
public |
A reference to the target to which the event was originally dispatched. |
|
public |
The time that the event was created. |
|
public |
The name of the event (case-insensitive). |
Method Summary
Public Methods | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
Public Constructors
Public Members
public bubbles: boolean source
A boolean indicating whether the event bubbles up through the DOM or not.
public currentTarget: HTMLElement source
A reference to the currently registered target for the event.
public defaultPrevented: boolean source
Indicates whether or not event.preventDefault() has been called on the event.
public isTrusted: boolean source
Indicates whether or not the event was initiated by the browser (after a user click for instance) or by a script (using an event creation method)
public target: HTMLElement source
A reference to the target to which the event was originally dispatched.