getModifierState
|
Boolean |
Queries the state of a modifier using a key identifier. |
Sytaxis:
object.getModifierState(modifier) Arguments:
Name |
Type |
O/R |
Description |
modifier |
String |
Required |
A modifier key identifier. Common modifier keys are "Alt", "AltGraph", "CapsLock", "Control", "Meta", "NumLock", "Scroll", or "Shift" |
|
initEvent *
|
Void |
The initEvent method is used to initialize the value of an Event created through the DocumentEvent interface. |
Sytaxis:
object.initEvent(type, canBubble, cancelable) Arguments:
Name |
Type |
O/R |
Description |
type |
String |
Required |
Specifies the event type. |
canBubble |
Boolean |
Required |
Specifies whether or not the event can bubble. |
cancelable |
Boolean |
Required |
Specifies whether or not the event's default action can be prevented. |
|
initMouseEvent
|
Void |
The initMouseEvent method is used to initialize the value of a MouseEvent object. |
Sytaxis:
object.initMouseEvent(type, canBubble, cancelable, view, detail, screenX, screenY, clientX, clientY, ctrlKey, shiftKey, metaKey, button, relatedTarget) Arguments:
Name |
Type |
O/R |
Description |
type |
String |
Required |
Specifies the event type. |
canBubble |
Boolean |
Required |
Specifies whether or not the event can bubble. |
cancelable |
Boolean |
Required |
Specifies whether or not the event's default action can be prevented. |
view |
Object |
Required |
Specifies view. This value may be null. |
detail |
Number |
Required |
Specifies detail. |
screenX |
Number |
Required |
The horizontal coordinate at which the event occurred relative to the origin of the screen coordinate system. |
screenY |
Number |
Required |
The vertical coordinate at which the event occurred relative to the origin of the screen coordinate system. |
clientX |
Number |
Required |
The horizontal coordinate at which the event occurred relative to the viewport associated with the event. |
clientY |
Number |
Required |
The vertical coordinate at which the event occurred relative to the viewport associated with the event. |
ctrlKey |
Boolean |
Required |
Specifies if Control key was pressed. |
shiftKey |
Boolean |
Required |
Specifies if Shift key was pressed. |
metaKey |
Boolean |
Required |
Specifies if Meta key was pressed. |
button |
Number |
Required |
Indicates which pointer device button changed state. |
relatedTarget |
Node
|
Required |
Specifies MouseEvent.relatedTarget. This value may be null. |
|
initUIEvent *
|
Void |
The initUIEvent method is used to initialize the value of a UIEvent object. |
Sytaxis:
object.initUIEvent(type, canBubble, cancelable, view, detail) Arguments:
Name |
Type |
O/R |
Description |
type |
String |
Required |
Specifies the event type. |
canBubble |
Boolean |
Required |
Specifies whether or not the event can bubble. |
cancelable |
Boolean |
Required |
Specifies whether or not the event's default action can be prevented. |
view |
Object |
Required |
Specifies view. This value may be null. |
detail |
Number |
Required |
Specifies detail. |
|
preventDefault *
|
Void |
If an event is cancelable, the preventDefault method is used to signify that the event is to be canceled, meaning any default action normally taken by the implementation as a result of the event will not occur. |
Sytaxis:
object.preventDefault()
|
stopImmediatePropagation *
|
Void |
Prevents other event listeners from being triggered and, unlike stopPropagation() its effect is immediate |
Sytaxis:
object.stopImmediatePropagation()
|
stopPropagation *
|
Void |
The stopPropagation method is used prevent further propagation of an event during event flow. The event will complete dispatch to all listeners on the current EventTarget before event flow stops. This method may be used during any stage of event flow. |
Sytaxis:
object.stopPropagation()
|