Mac OS X Reference Library Apple Developer
Search

Event

Module:
events
Declared In:

Overview

Use the links in the table of contents to the left to access the documentation.



Functions

initEvent
preventDefault
stopImmediatePropagation
stopPropagation

initEvent



void initEvent(
    in DOMString eventTypeArg, 
    in boolean canBubbleArg, 
    in boolean cancelableArg); 

preventDefault



void preventDefault(); 

stopImmediatePropagation



void stopImmediatePropagation(); 

stopPropagation



void stopPropagation(); 

Member Data

AT_TARGET
BLUR
bubbles
BUBBLING_PHASE
cancelable
cancelBubble
CAPTURING_PHASE
CHANGE
CLICK
clipboardData
currentTarget
DBLCLICK
defaultPrevented
DRAGDROP
eventPhase
FOCUS
KEYDOWN
KEYPRESS
KEYUP
MOUSEDOWN
MOUSEDRAG
MOUSEMOVE
MOUSEOUT
MOUSEOVER
MOUSEUP
returnValue
SELECT
srcElement
target
timeStamp
type

AT_TARGET



const unsigned short AT_TARGET = 2; 

BLUR



const unsigned short BLUR = 8192; 

bubbles



readonly attribute boolean bubbles; 

BUBBLING_PHASE



const unsigned short BUBBLING_PHASE = 3; 

cancelable



readonly attribute boolean cancelable; 

cancelBubble



attribute boolean cancelBubble; 

CAPTURING_PHASE



const unsigned short CAPTURING_PHASE = 1; 

CHANGE



const unsigned short CHANGE = 32768; 

CLICK



const unsigned short CLICK = 64; 

clipboardData



readonly attribute Clipboard clipboardData; 

currentTarget



readonly attribute EventTarget currentTarget; 

DBLCLICK



const unsigned short DBLCLICK = 128; 

defaultPrevented



readonly attribute boolean defaultPrevented; 

DRAGDROP



const unsigned short DRAGDROP = 2048; 

eventPhase



readonly attribute unsigned short eventPhase; 

FOCUS



const unsigned short FOCUS = 4096; 

KEYDOWN



const unsigned short KEYDOWN = 256; 

KEYPRESS



const unsigned short KEYPRESS = 1024; 

KEYUP



const unsigned short KEYUP = 512; 

MOUSEDOWN



const unsigned short MOUSEDOWN = 1; 

MOUSEDRAG



const unsigned short MOUSEDRAG = 32; 

MOUSEMOVE



const unsigned short MOUSEMOVE = 16; 

MOUSEOUT



const unsigned short MOUSEOUT = 8; 

MOUSEOVER



const unsigned short MOUSEOVER = 4; 

MOUSEUP



const unsigned short MOUSEUP = 2; 

returnValue



attribute boolean returnValue; 

SELECT



const unsigned short SELECT = 16384; 

srcElement



readonly attribute EventTarget srcElement; 

target



readonly attribute EventTarget target; 

timeStamp



readonly attribute DOMTimeStamp timeStamp; 

type



readonly attribute DOMString type; 

 

Did this document help you? Yes It's good, but... Not helpful...

Last Updated: 2010-05-27