Home Reference Source Repository
import Event from 'html-document/src/Event.js'
public class | source

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.

See:

Constructor Summary

Public Constructor
public

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 constructor(type: string) source

Params:

NameTypeAttributeDescription
type string

Public Members

public bubbles: boolean source

A boolean indicating whether the event bubbles up through the DOM or not.

public cancelable: boolean source

A boolean indicating whether the event is cancelable.

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 eventPhase: number source

Indicates which phase of the event flow is being processed.

public immediatePropagationStopped: boolean source

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 propagationStopped: boolean source

public target: HTMLElement source

A reference to the target to which the event was originally dispatched.

public timeStamp: number source

The time that the event was created.

public type: string source

The name of the event (case-insensitive).

Public Methods

public isImmediatePropagationStopped(): boolean source

Return:

boolean

public preventDefault() source

public stopImmediatePropagation() source

public stopPropagation() source