DocumentEvent

A document event.

Properties

Property Type Access Description
bubbles bool readonly If true, the DocumentEvent supports the bubbling phase of propagation.
cancelable bool readonly If true, the default behavior of the DocumentEvent on its target can be canceled.
captures bool readonly If true, the DocumentEvent supports the capturing phase of propagation.
currentTarget Object readonly The current propagation target of the DocumentEvent.
defaultPrevented bool readonly If true, the default behavior of the DocumentEvent on its target has been canceled.
eventPhase EventPhases
:
NOT_DISPATCHING
CAPTURING_PHASE
AT_TARGET
BUBBLING_PHASE
DONE
readonly The current propagation phase of the DocumentEvent.
eventType string readonly The name of the event.
fullName File readonly The full path to the DocumentEvent, including the name of the DocumentEvent.
id number readonly The unique ID of the DocumentEvent.
index number readonly The index of the DocumentEvent within its containing object.
parent any readonly The parent of the DocumentEvent (a Application or Document).
propagationStopped bool readonly If true, propagation of the DocumentEvent beyond the current target has been stopped.
properties Object r/w A property that allows setting of several properties at the same time.
target Object readonly The target of the DocumentEvent.
timeStamp Date readonly The time the DocumentEvent was initialized.
userInteractionLevel UserInteractionLevels
:
NEVER_INTERACT
INTERACT_WITH_ALL
INTERACT_WITH_ALERTS
readonly Controls the display of dialogs and alerts during script processing.

Methods

Array of DocumentEventgetElements ()
Resolves the object specifier, creating an array of object references.

void preventDefault ()
Cancels the default behavior of the DocumentEvent on its target.

void stopPropagation ()
Stops propagation of the DocumentEvent beyond the current target.

string toSource ()
Generates a string which, if executed, will return the DocumentEvent.

string toSpecifier ()
Retrieves the object specifier.

Returned by:

Array of DocumentEvent DocumentEvent .getElements (

)

Leave a Comment

Previous post:

Next post: