Methods
This section describes event related methods, including those described in Document Object Model (DOM) Level 3 Events.
In this section
| Topic | Description |
|---|---|
|
Creates a new a new DataTransferItem with the supplied data and adds it to the list. | |
|
Registers an event handler for the specified event type. | |
|
Adds a contact on an element to an MSGesture object. | |
|
Gets or sets a value that indicates whether an event should be stopped from propagating up from the current target. | |
|
Removes all DataTransferItems in the list. | |
|
Instructs the HTML paste operation on how to modify the src attribute that correspond to each file in the clipboardData.files collection. | |
|
Creates a DOM event of the specified type. | |
|
Creates a Touch object with the specified attributes. | |
|
Creates a TouchList array consisting of zero or more Touch objects. Calling this method with no arguments creates a TouchList array with no objects in it whose | |
|
Sends an event to the current element. | |
|
Fires a specified event on the object. | |
|
Returns the WebKitEntry (representing a file or directory) associated with the DataTransferItem. | |
|
Returns the file associated with the DataTransferItem. | |
|
Invokes the given callback function, passing it the DataTransferItem object string as an argument. | |
|
Retrieves a PointerPoint object that provides basic info on the pointer associated with the event. | |
|
Retrieves a collection of PointerPoint objects that represent the pointer history from the last pointer event up to and including the current pointer event. Each PointerPoint in the collection provides basic info on the pointer associated with the event. | |
|
Queries the state of the specified modifier key. | |
|
Initializes the values of an animation event. | |
|
Initializes the close event. | |
|
Initializes a new text composition event that the createEvent method created.
Important As of Microsoft Edge, the
createEvent()/initEvent() constructor pattern for synthetic events is deprecated. See the Synthetic Events page for more information. | |
|
Initializes a new custom event that the createEvent method created.
Important As of Microsoft Edge, the
createEvent()/initEvent() constructor pattern for synthetic events is deprecated. See the Synthetic Events page for more information. | |
|
Used to create a DeviceMotionEvent event from JavaScript. | |
|
Used to create a DeviceOrientationEvent from JavaScript. | |
|
Initializes a new drag event. | |
|
Creates an Error Event that can be dispatched from a JavaScript client. | |
|
Initializes a new generic event that the createEvent method created.
Important As of Microsoft Edge, the
createEvent()/initEvent() constructor pattern for synthetic events is deprecated. See the Synthetic Events page for more information. | |
|
Initializes a new focus event that the createEvent method created.
Important As of Microsoft Edge, the
createEvent()/initEvent() constructor pattern for synthetic events is deprecated. See the Synthetic Events page for more information. | |
|
Initializes a newly-created gesture event. | |
|
Initializes a new keyboard event that the createEvent method created.
Important As of Microsoft Edge, the
createEvent()/initEvent() constructor pattern for synthetic events is deprecated. See the Synthetic Events page for more information. | |
|
Initializes a new cross-document message (XDM) event that the createEvent method created.
Important As of Microsoft Edge, the
createEvent()/initEvent() constructor pattern for synthetic events is deprecated. See the Synthetic Events page for more information. | |
|
Initializes a new mouse event that the createEvent method created.
Important As of Microsoft Edge, the
createEvent()/initEvent() constructor pattern for synthetic events is deprecated. See the Synthetic Events page for more information. | |
|
Initializes a new mouse wheel event that the createEvent method created. For the standards based method, see initWheelEvent.
Important As of Microsoft Edge, the
createEvent()/initEvent() constructor pattern for synthetic events is deprecated. See the Synthetic Events page for more information. | |
|
Used to create a manipulation event that can be called from JavaScript. | |
|
Initializes a new DOM mutation (modification) event that the createEvent method created.
Important As of Microsoft Edge, the
createEvent()/initEvent() constructor pattern for synthetic events is deprecated. See the Synthetic Events page for more information. | |
|
Used to create an PointerEvent from JavaScript. | |
|
Initializes the properties of a PopStateEvent. | |
|
Initializes the value of a ProgressEvent object. | |
|
Initializes a new text event that the createEvent method created.
Important As of Microsoft Edge, the
createEvent()/initEvent() constructor pattern for synthetic events is deprecated. See the Synthetic Events page for more information. | |
|
Used to initialize the value of a TransitionEvent. | |
|
Initializes a new user interface event that the createEvent method created.
Important As of Microsoft Edge, the
createEvent()/initEvent() constructor pattern for synthetic events is deprecated. See the Synthetic Events page for more information. | |
|
Important As of Microsoft Edge, the
createEvent()/initEvent() constructor pattern for synthetic events is deprecated. See the Synthetic Events page for more information.Initializes a new mouse wheel event that the createEvent method created. | |
|
Cancels the default action of an event. | |
|
Releases a pointer captured by an element (using the setPointerCapture method). | |
|
Removes the specified DataTransferItem from the list. | |
|
Removes an event handler that the addEventListener method registered. | |
|
Assigns a specified pointer to an element. This method is used to ensure that an element continues to receive pointer events even if the contact moves off the element. | |
|
Stops and resets all ongoing gesture and inertia related events, and fires an onmsgestureend event on the target element. | |
|
Prevents any further propagation of an event. | |
|
Prevents propagation of an event beyond the current target. |