Class puredom.DOMEvent
-
Represents a DOM event.
- Defined in: puredom.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
|
The contained raw DOM Event.
|
|
|
When available, refers to a DOM node that aided in originating the event (such as the DOM node the mouse was *previously* overtop of).
|
|
|
Represents the handler's return value.
|
|
|
The DOM node that originated the event.
|
|
|
The timestamp when the event was triggered.
|
|
|
The triggered event type (with no "on"-prefix)
|
|
|
Which mouse button or key generated the action (if applicable)
|
Method Summary
| Method Attributes | Method Name and Description |
|---|---|
|
cancel
()
Stop bubbling, prevent the browser-default action and set the event's returned value to false.
|
|
|
cancelBubble
()
Alias of puredom.DOMEvent#stopPropagation, provided only for backward compatibility.
|
|
|
Prevent the event's browser-default action from occurring.
|
|
|
stop
()
Alias of puredom.DOMEvent#cancel, provided only for compatibility with other notable DOM libraries.
|
|
|
Stop bubbling.
|
Class Detail
puredom.DOMEvent()
Field Detail
{DOMEvent}
originalEvent
The contained raw DOM Event.
When available, refers to a DOM node that aided in originating the event (such as the DOM node the mouse was *previously* overtop of).
{Boolean}
returnValue
Represents the handler's return value.
target
The DOM node that originated the event.
{Number}
timeStamp
The timestamp when the event was triggered.
{String}
type
The triggered event type (with no "on"-prefix)
{Number}
which
Which mouse button or key generated the action (if applicable)
Method Detail
-
cancel()Stop bubbling, prevent the browser-default action and set the event's returned value to false.
-
cancelBubble()Alias of puredom.DOMEvent#stopPropagation, provided only for backward compatibility.
-
preventDefault()Prevent the event's browser-default action from occurring.
-
stop()Alias of puredom.DOMEvent#cancel, provided only for compatibility with other notable DOM libraries.
-
stopPropagation()Stop bubbling.