haXe API Documentation
Back | Index
extern class js.html.Event
Available in js

This chapter describes the DOM Event Model. The Event interface itself is described, as well as the interfaces for event registration on nodes in the DOM, and event listeners, and several longer examples that show how the various event interfaces relate to one another.

There is an excellent diagram that clearly explains the three phases of event flow through the DOM in the DOM Level 3 Events draft.



Documentation for this class was provided by MDN.
var bubbles(default,null) : Bool
A boolean indicating whether the event bubbles up through the DOM or not.
var cancelBubble : Bool
A boolean indicating whether the bubbling of the event has been canceled or not.
var cancelable(default,null) : Bool
A boolean indicating whether the event is cancelable.
var clipboardData(default,null) : Clipboard
var currentTarget(default,null) : EventTarget
A reference to the currently registered target for the event.
var defaultPrevented(default,null) : Bool
Indicates whether or not event.preventDefault() has been called on the event.
var eventPhase(default,null) : Int
Indicates which phase of the event flow is being processed.
var returnValue : Bool
var srcElement(default,null) : EventTarget
var target(default,null) : EventTarget
A reference to the target to which the event was originally dispatched.
var timeStamp(default,null) : Int
The time that the event was created.
var type(default,null) : String
The name of the event (case-insensitive).
function new(type : String, ?canBubble : Bool, ?cancelable : Bool) : Void
function initEvent(eventTypeArg : String, canBubbleArg : Bool, cancelableArg : Bool) : Void
function preventDefault() : Void
function stopImmediatePropagation() : Void
function stopPropagation() : Void
static inline var AT_TARGET : Int
static inline var BLUR : Int
static inline var BUBBLING_PHASE : Int
static inline var CAPTURING_PHASE : Int
static inline var CHANGE : Int
static inline var CLICK : Int
static inline var DBLCLICK : Int
static inline var DRAGDROP : Int
static inline var FOCUS : Int
static inline var KEYDOWN : Int
static inline var KEYPRESS : Int
static inline var KEYUP : Int
static inline var MOUSEDOWN : Int
static inline var MOUSEDRAG : Int
static inline var MOUSEMOVE : Int
static inline var MOUSEOUT : Int
static inline var MOUSEOVER : Int
static inline var MOUSEUP : Int
static inline var NONE : Int
static inline var SELECT : Int
Back | Index