EventProps
Value members
Concrete fields
fired when an element receives pointer capture.
fired when an element receives pointer capture.
- See also:
Fired after pointer capture is released for a pointer.
Fired after pointer capture is released for a pointer.
- See also:
Script to be run after the document is printed
Script to be run after the document is printed
- See also:
The animationend event is event fires when a CSS animation reaches the end of its active period.
The animationend event is event fires when a CSS animation reaches the end of its active period.
- See also:
The animationiteration event is sent when a CSS animation reaches the end of an iteration. An iteration ends when a single pass through the sequence of animation instructions is completed by executing the last animation step.
The animationiteration event is sent when a CSS animation reaches the end of an iteration. An iteration ends when a single pass through the sequence of animation instructions is completed by executing the last animation step.
- See also:
The animationstart event is sent when a CSS Animation starts to play.
The animationstart event is sent when a CSS Animation starts to play.
- See also:
The DOM beforeinput event fires when the value of an , or
The DOM beforeinput event fires when the value of an , or
- See also:
- Note:
IE does not support this event.
Script to be run before the document is printed
Script to be run before the document is printed
- See also:
Script to be run when the document is about to be unloaded
Script to be run when the document is about to be unloaded
- See also:
The blur event is raised when an element loses focus.
The blur event is raised when an element loses focus.
- See also:
Script to be run when a file is ready to start playing (when it has buffered enough to begin)
Script to be run when a file is ready to start playing (when it has buffered enough to begin)
- See also:
Script to be run when a file can be played all the way to the end without pausing for buffering
Script to be run when a file can be played all the way to the end without pausing for buffering
- See also:
The change event is fired for input, select, and textarea elements when a change to the element's value is committed by the user.
The change event is fired for input, select, and textarea elements when a change to the element's value is committed by the user.
- See also:
The click event is raised when the user clicks on an element. The click event will occur after the mousedown and mouseup events.
The click event is raised when the user clicks on an element. The click event will occur after the mousedown and mouseup events.
- See also:
Script to be run when a context menu is triggered
Script to be run when a context menu is triggered
- See also:
Fires when the user copies the content of an element
Fires when the user copies the content of an element
- See also:
Fires when the user cuts the content of an element
Fires when the user cuts the content of an element
- See also:
The dblclick event is fired when a pointing device button (usually a mouse button) is clicked twice on a single element.
The dblclick event is fired when a pointing device button (usually a mouse button) is clicked twice on a single element.
- See also:
The DOMContentLoaded
event is fired when the initial HTML document has been completely loaded and parsed,
without waiting for stylesheets, images, and subframes to finish loading. A very different event load
should be used only to detect a fully-loaded page.
The DOMContentLoaded
event is fired when the initial HTML document has been completely loaded and parsed,
without waiting for stylesheets, images, and subframes to finish loading. A very different event load
should be used only to detect a fully-loaded page.
It is an incredibly common mistake to use load where DOMContentLoaded would be much more appropriate, so be cautious.
- See also:
Script to be run at the end of a drag operation
Script to be run at the end of a drag operation
- See also:
Script to be run when an element has been dragged to a valid drop target
Script to be run when an element has been dragged to a valid drop target
- See also:
Script to be run when an element leaves a valid drop target
Script to be run when an element leaves a valid drop target
- See also:
Script to be run when an element is being dragged over a valid drop target
Script to be run when an element is being dragged over a valid drop target
- See also:
Script to be run at the start of a drag operation
Script to be run at the start of a drag operation
- See also:
Script to be run when dragged element is being dropped
Script to be run when dragged element is being dropped
- See also:
Script to be run when the length of the media changes
Script to be run when the length of the media changes
- See also:
Script to be run when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects)
Script to be run when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects)
- See also:
Script to be run when the media has reach the end (a useful event for messages like "thanks for listening")
Script to be run when the media has reach the end (a useful event for messages like "thanks for listening")
- See also:
Script to be run when an error occurs when the file is being loaded
Script to be run when an error occurs when the file is being loaded
- See also:
The focus event is raised when the user sets focus on the given element.
The focus event is raised when the user sets focus on the given element.
- See also:
The fullscreenchange event is fired immediately after the browser switches into or out of full-screen mode.
The fullscreenchange event is fired immediately after the browser switches into or out of full-screen mode.
- See also:
The fullscreenerror event is fired when the browser cannot switch to full-screen mode.
The fullscreenerror event is fired when the browser cannot switch to full-screen mode.
- See also:
Script to be run when there has been changes to the anchor part of the a URL
Script to be run when there has been changes to the anchor part of the a URL
- See also:
The input event is fired for input, select, textarea, and contentEditable elements when it gets user input.
The input event is fired for input, select, textarea, and contentEditable elements when it gets user input.
- See also:
The keydown event is raised when the user presses a keyboard key.
The keydown event is raised when the user presses a keyboard key.
- See also:
The keypress event should be raised when the user presses a key on the keyboard. However, not all browsers fire keypress events for certain keys.
The keypress event should be raised when the user presses a key on the keyboard. However, not all browsers fire keypress events for certain keys.
Webkit-based browsers (Google Chrome and Safari, for example) do not fire keypress events on the arrow keys. Firefox does not fire keypress events on modifier keys like SHIFT.
- See also:
The keyup event is raised when the user releases a key that's been pressed.
The keyup event is raised when the user releases a key that's been pressed.
- See also:
The onload property of the GlobalEventHandlers mixin is an event handler
for the load event of a Window, XMLHttpRequest, element, etc.,
which fires when the resource has loaded.
The onload property of the GlobalEventHandlers mixin is an event handler
for the load event of a Window, XMLHttpRequest, element, etc.,
which fires when the resource has loaded.
- See also:
Script to be run just as the file begins to load before anything is actually loaded
Script to be run just as the file begins to load before anything is actually loaded
- See also:
Script to be run when meta data (like dimensions and duration) are loaded
Script to be run when meta data (like dimensions and duration) are loaded
- See also:
Script to be run when an object receives a message
Script to be run when an object receives a message
- See also:
Script to be run when an object receives a message that cannot be deserialized and therefore raises an error
Script to be run when an object receives a message that cannot be deserialized and therefore raises an error
- See also:
The mousedown event is raised when the user presses the mouse button.
The mousedown event is raised when the user presses the mouse button.
- See also:
The mouseenter event is fired when a pointing device (usually a mouse) is moved over the element that has the listener attached.
The mouseenter event is fired when a pointing device (usually a mouse) is moved over the element that has the listener attached.
Similar to mouseover, it differs in that it doesn't bubble and that it isn't sent when the pointer is moved from one of its descendants' physical space to its own physical space.
With deep hierarchies, the amount of mouseenter events sent can be quite huge and cause significant performance problems. In such cases, it is better to listen for mouseover events.
- See also:
The mouseleave event is fired when the pointer of a pointing device (usually a mouse) is moved out of an element.
The mouseleave event is fired when the pointer of a pointing device (usually a mouse) is moved out of an element.
mouseleave and mouseout are similar but differ in that mouseleave does not bubble and mouseout does.
This means that mouseleave is fired when the pointer has exited the element and all of its descendants, whereas mouseout is fired when the pointer leaves the element or leaves one of the element's descendants (even if the pointer is still within the element).
- See also:
The mousemove event is raised when the user moves the mouse.
The mousemove event is raised when the user moves the mouse.
- See also:
The mouseout event is raised when the mouse leaves an element (e.g, when the mouse moves off of an image in the web page, the mouseout event is raised for that image element).
The mouseout event is raised when the mouse leaves an element (e.g, when the mouse moves off of an image in the web page, the mouseout event is raised for that image element).
- See also:
The mouseover event is raised when the user moves the mouse over a particular element.
The mouseover event is raised when the user moves the mouse over a particular element.
- See also:
The mouseup event is raised when the user releases the mouse button.
The mouseup event is raised when the user releases the mouse button.
- See also:
Script to be run when the browser starts to work offline
Script to be run when the browser starts to work offline
- See also:
Script to be run when the browser starts to work online
Script to be run when the browser starts to work online
- See also:
Script to be run when a user navigates away from a page
Script to be run when a user navigates away from a page
- See also:
Script to be run when a user navigates to a page
Script to be run when a user navigates to a page
- See also:
Fires when the user pastes some content in an element
Fires when the user pastes some content in an element
- See also:
Script to be run when the media is paused either by the user or programmatically
Script to be run when the media is paused either by the user or programmatically
- See also:
Script to be run when the media is ready to start playing
Script to be run when the media is ready to start playing
- See also:
Script to be run when the media actually has started playing
Script to be run when the media actually has started playing
- See also:
a browser fires this event if it concludes the pointer will no longer be able to generate events (for example the related device is deactived).
a browser fires this event if it concludes the pointer will no longer be able to generate events (for example the related device is deactived).
- See also:
fired when a pointing device is moved into the hit test boundaries of an element or one of its descendants, including as a result of a pointerdown event from a device that does not support hover (see pointerdown).
fired when a pointing device is moved into the hit test boundaries of an element or one of its descendants, including as a result of a pointerdown event from a device that does not support hover (see pointerdown).
- See also:
fired when a pointing device is moved out of the hit test boundaries of an element. For pen devices, this event is fired when the stylus leaves the hover range detectable by the digitizer.
fired when a pointing device is moved out of the hit test boundaries of an element. For pen devices, this event is fired when the stylus leaves the hover range detectable by the digitizer.
- See also:
fired for several reasons including: pointing device is moved out of the hit test boundaries of an element; firing the pointerup event for a device that does not support hover (see pointerup); after firing the pointercancel event (see pointercancel); when a pen stylus leaves the hover range detectable by the digitizer.
fired for several reasons including: pointing device is moved out of the hit test boundaries of an element; firing the pointerup event for a device that does not support hover (see pointerup); after firing the pointercancel event (see pointercancel); when a pen stylus leaves the hover range detectable by the digitizer.
- See also:
fired when a pointing device is moved into an element's hit test boundaries.
fired when a pointing device is moved into an element's hit test boundaries.
- See also:
Script to be run when the window's history changes
Script to be run when the window's history changes
- See also:
Script to be run when the browser is in the process of getting the media data
Script to be run when the browser is in the process of getting the media data
- See also:
Script to be run each time the playback rate changes (like when a user switches to a slow motion or fast forward mode)
Script to be run each time the playback rate changes (like when a user switches to a slow motion or fast forward mode)
- See also:
The reset event is fired when a form is reset.
The reset event is fired when a form is reset.
- See also:
The GlobalEventHandlers.onresize property contains an EventHandler triggered when a resize event is received.
The GlobalEventHandlers.onresize property contains an EventHandler triggered when a resize event is received.
- See also:
An event handler for scroll events on element.
An event handler for scroll events on element.
- See also:
Fires when the user writes something in a search field (for <input="search">)
Fires when the user writes something in a search field (for <input="search">)
- See also:
Script to be run when the seeking attribute is set to false indicating that seeking has ended
Script to be run when the seeking attribute is set to false indicating that seeking has ended
- See also:
Script to be run when the seeking attribute is set to true indicating that seeking is active
Script to be run when the seeking attribute is set to true indicating that seeking is active
- See also:
The select event only fires when text inside a text input or textarea is selected. The event is fired after the text has been selected.
The select event only fires when text inside a text input or textarea is selected. The event is fired after the text has been selected.
- See also:
Script to be run when the browser is unable to fetch the media data for whatever reason
Script to be run when the browser is unable to fetch the media data for whatever reason
- See also:
Script to be run when a Web Storage area is updated
Script to be run when a Web Storage area is updated
- See also:
The submit event is fired when the user clicks a submit button in a form ().
The submit event is fired when the user clicks a submit button in a form ().
- See also:
Script to be run when fetching the media data is stopped before it is completely loaded for whatever reason
Script to be run when fetching the media data is stopped before it is completely loaded for whatever reason
- See also:
Script to be run when the playing position has changed (like when the user fast forwards to a different point in the media)
Script to be run when the playing position has changed (like when the user fast forwards to a different point in the media)
- See also:
Fires when the user opens or closes the
Fires when the user opens or closes the
- See also:
The transitionend
event is sent to when a CSS transition completes.
The transitionend
event is sent to when a CSS transition completes.
- See also:
- Note:
If the transition is removed from its target node before the transition completes execution, the
transitionend
event won't be generated. One way this can happen is by changing the value of thetransition-property
attribute which applies to the target. Another is if thedisplay
attribute is set tonone
.
Fires once a page has unloaded (or the browser window has been closed)
Fires once a page has unloaded (or the browser window has been closed)
- See also:
The visibilitychange event is fired when the content of a tab has become visible or has been hidden.
The visibilitychange event is fired when the content of a tab has become visible or has been hidden.
- See also:
Script to be run each time the volume is changed which (includes setting the volume to "mute")
Script to be run each time the volume is changed which (includes setting the volume to "mute")
- See also:
Script to be run when the media has paused but is expected to resume (like when the media pauses to buffer more data)
Script to be run when the media has paused but is expected to resume (like when the media pauses to buffer more data)
- See also: