Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
DOM event
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Internet Explorer-specific events ==== In addition to the common (W3C) events, two major types of events are added by [[Internet Explorer]]. Some of the events have been implemented as [[de facto standard]]s by other browsers. * [[Clipboard (computing)|Clipboard]] events. * Data binding events.{{clarify|date=April 2012}} {| class="wikitable" ! Category ! Type ! Attribute ! Description ! Bubbles ! Cancelable |- | rowspan=6 | Clipboard | cut | oncut | Fires after a selection is cut to the clipboard. | {{Yes}} | {{Yes}} |- | copy | oncopy | Fires after a selection is copied to the clipboard. | {{Yes}} | {{Yes}} |- | paste | onpaste | Fires after a selection is pasted from the clipboard. | {{Yes}} | {{Yes}} |- | beforecut | onbeforecut | Fires before a selection is cut to the clipboard. | {{Yes}} | {{Yes}} |- | beforecopy | onbeforecopy | Fires before a selection is copied to the clipboard. | {{Yes}} | {{Yes}} |- | beforepaste | onbeforepaste | Fires before a selection is pasted from the clipboard. | {{Yes}} | {{Yes}} |- | rowspan=11 | Data binding | afterupdate | onafterupdate | Fires immediately after a databound object has been updated. | {{Yes}} | {{No}} |- | beforeupdate | onbeforeupdate | Fires before a data source is updated. | {{Yes}} | {{Yes}} |- | cellchange | oncellchange | Fires when a data source has changed. | {{Yes}} | {{No}} |- | dataavailable | ondataavailable | Fires when new data from a data source become available. | {{Yes}} | {{No}} |- | datasetchanged | ondatasetchanged | Fires when content at a data source has changed. | {{Yes}} | {{No}} |- | datasetcomplete | ondatasetcomplete | Fires when transfer of data from the data source has completed. | {{Yes}} | {{No}} |- | errorupdate | onerrorupdate | Fires if an error occurs while updating a data field. | {{Yes}} | {{No}} |- | rowenter | onrowenter | Fires when a new row of data from the data source is available. | {{Yes}} | {{No}} |- | rowexit | onrowexit | Fires when a row of data from the data source has just finished. | {{No}} | {{Yes}} |- | rowsdelete | onrowsdelete | Fires when a row of data from the data source is deleted. | {{Yes}} | {{No}} |- | rowinserted | onrowinserted | Fires when a row of data from the data source is inserted. | {{Yes}} | {{No}} |- | rowspan=9 | Mouse | contextmenu | oncontextmenu | Fires when the context menu is shown. | {{Yes}} | {{Yes}} |- | drag | ondrag | Fires when during a [[Drag and drop|mouse drag]] (on the moving Element). | {{Yes}} | {{Yes}} |- | dragstart | ondragstart | Fires when a mouse drag begins (on the moving Element). | {{Yes}} | {{Yes}} |- | dragenter | ondragenter | Fires when something is dragged onto an area (on the target Element). | {{Yes}} | {{Yes}} |- | dragover | ondragover | Fires when a drag is held over an area (on the target Element). | {{Yes}} | {{Yes}} |- | dragleave | ondragleave | Fires when something is dragged out of an area (on the target Element). | {{Yes}} | {{Yes}} |- | dragend | ondragend | Fires when a mouse drag ends (on the moving Element). | {{Yes}} | {{Yes}} |- | drop | ondrop | Fires when a mouse button is released over a valid target during a drag (on the target Element). | {{Yes}} | {{Yes}} |- | selectstart | onselectstart | Fires when the user starts to select text. | {{Yes}} | {{Yes}} |- | Keyboard | help | onhelp | Fires when the user initiates help. | {{Yes}} | {{Yes}} |- | rowspan=2 | HTML frame/object | beforeunload | onbeforeunload | Fires before a document is unloaded. | {{No}} | {{Yes}} |- | stop | onstop | Fires when the user stops loading the object. (unlike abort, stop event can be attached to document) | {{No}} | {{No}} |- | HTML form | beforeeditfocus | onbeforeeditfocus | Fires before an element gains focus for editing. | {{Yes}} | {{Yes}} |- | rowspan=3 | Marquee | start | onstart | Fires when a marquee begins a new loop. | {{No}} | {{No}} |- | finish | onfinish | Fires when marquee looping is complete. | {{No}} | {{Yes}} |- | bounce | onbounce | Fires when a scrolling marquee bounces back in the other direction. | {{No}} | {{Yes}} |- | rowspan=6 | Miscellaneous | beforeprint | onbeforeprint | Fires before a document is printed | {{No}} | {{No}} |- | afterprint | onafterprint | Fires immediately after the document prints. | {{No}} | {{No}} |- | propertychange | onpropertychange | Fires when the property of an object is changed. | {{No}} | {{No}} |- | filterchange | onfilterchange | Fires when a filter changes properties or finishes a transition. | {{No}} | {{No}} |- | readystatechange | onreadystatechange | Fires when the readyState property of an element changes. | {{No}} | {{No}} |- | losecapture | onlosecapture | Fires when the releaseCapture method is invoked. | {{No}} | {{No}} |- |} Note that Mozilla, Safari and Opera also support the readystatechange event for the [[XMLHttpRequest]] object. Mozilla also supports the beforeunload event using the traditional event registration method (DOM Level 0). Mozilla and Safari also support contextmenu, but Internet Explorer for Mac does not. Note that Firefox 6 and later support the beforeprint and afterprint events.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)