PrintEvent

A print event

Properties

Property Type Access Description
bubbles bool readonly If true, the PrintEvent supports the bubbling phase of propagation.
cancelable bool readonly If true, the default behavior of the PrintEvent on its target can be canceled.
captures bool readonly If true, the PrintEvent supports the capturing phase of propagation.
currentTarget Object readonly The current propagation target of the PrintEvent.
defaultPrevented bool readonly If true, the default behavior of the PrintEvent on its target has been canceled.
documentPrintUiOption Array of DocumentPrintUiOptions
:
SUPPRESS_PRINT_PROGRESS
SUPPRESS_PRINT_WARNINGS
SUPPRESS_PRINT_DIALOG
SUPPRESS_FILE_SAVE_DIALOG
r/w UI options for print document
eventPhase EventPhases
:
NOT_DISPATCHING
CAPTURING_PHASE
AT_TARGET
BUBBLING_PHASE
DONE
readonly The current propagation phase of the PrintEvent.
eventType string readonly The name of the event.
id number readonly The unique ID of the PrintEvent.
index number readonly The index of the PrintEvent within its containing object.
parent Document readonly The parent of the PrintEvent (a Document).
propagationStopped bool readonly If true, propagation of the PrintEvent 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 PrintEvent.
timeStamp Date readonly The time the PrintEvent was initialized.

Methods

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

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

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

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

string toSpecifier ()
Retrieves the object specifier.

Returned by:

Array of PrintEvent PrintEvent .getElements (

)

Leave a Comment

Previous post:

Next post: