Event

extern class js.html.EventAvailable 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) : BoolA boolean indicating whether the event bubbles up through the DOM or not. var cancelBubble : BoolA boolean indicating whether the bubbling of the event has been canceled or not. var cancelable(default,null) : BoolA boolean indicating whether the event is cancelable. var clipboardData(default,null) : Clipboard var currentTarget(default,null) : EventTargetA reference to the currently registered target for the event. var defaultPrevented(default,null) : BoolIndicates whether or not event.preventDefault() has been called on the event. var eventPhase(default,null) : IntIndicates which phase of the event flow is being processed. var returnValue : Bool var srcElement(default,null) : EventTarget var target(default,null) : EventTargetA reference to the target to which the event was originally dispatched. var timeStamp(default,null) : IntThe time that the event was created. var type(default,null) : StringThe 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
version #18264, modified 2013-05-01 11:57:21 by api
0 comment