JavaScript Event List Explanation

General Events Total of 10 types

Event Browser Support Explanation
onclick IE3, N2 Triggered when the mouse is clicked
ondblclick IE4, N4 Triggered when the mouse is double-clicked
onmousedown IE4, N4 Triggered when the mouse is pressed down
onmouseup IE4, N4 Triggered when the mouse is pressed and then released
onmouseover IE3, N2 Triggered when the mouse moves over an object's area
onmousemove IE4, N4 Triggered when the mouse moves
onmouseout IE4, N3 Triggered when the mouse leaves an object's area
onkeypress IE4, N4 Triggered when a key on the keyboard is pressed and released
onkeydown IE4, N4 Triggered when a key on the keyboard is pressed down
onkeyup IE4, N4 Triggered when a key on the keyboard is released

Page-related Events Total of 9 types

Event Browser Support Explanation
onabort IE4, N3 The image download is interrupted by the user
onbeforeunload IE4, N Triggered when the content of the current page is about to be changed
onerror IE4, N3 Triggered when an error occurs
onload IE3, N2 Triggered when the page content is complete
onmove IE, N4 Triggered when the browser window is moved
onresize IE4, N4 Triggered when the size of the browser window is changed
onscroll IE4, N Triggered when the position of the browser's scrollbar changes
onstop IE5, N Triggered when the browser's stop button is pressed or a downloading file is interrupted
onunload IE3, N2 Triggered when the current page is about to be changed

Form-related Events Total of 5 types

Event Browser Support Explanation
onblur IE3, N2 Triggered when the current element loses focus
onchange IE3, N2 Triggered when the current element loses focus and the content of the element changes
onfocus IE3, N2 Triggered when an element gains focus
onreset IE4, N3 Triggered when the RESET attribute in a form is activated
onsubmit IE3, N2 Triggered when a form is submitted

Marquee Events Total of 3 types

Event Browser Support Explanation
onbounce IE4, N Triggered when the content inside the Marquee moves beyond the display area of the Marquee
onfinish IE4, N Triggered when the Marquee element has finished displaying the content that needs to be shown
onstart IE4, N Triggered when the Marquee element begins to display content

Editing Events Total of 20 types

Event Browser Support Explanation
onbeforecopy IE5, N Triggered before the selected content on the page is about to be copied to the clipboard of the user's system
onbeforecut IE5, N Triggered when a part or all of the content on the page is about to be removed from the current page [cut] and moved to the clipboard of the user's system
onbeforeeditfocus IE5, N The current element is about to enter the editing state
onbeforepaste IE5, N Triggered when content is about to be transferred [pasted] from the clipboard of the user's system to the page
onbeforeupdate IE5, N Notifies the target object when the user pastes content from the clipboard
oncontextmenu IE5, N Triggered when the user right-clicks to display a menu or triggers the page menu through keyboard keys
oncopy IE5, N Triggered after the selected content on the page has been copied
oncut IE5, N Triggered when the selected content on the page is cut
ondrag IE5, N Triggered when an object is being dragged [drag event]
ondragdrop IE, N4 An external object is dragged into the current window or frame with the mouse
ondragend IE5, N Triggered when the mouse drag ends, i.e., the mouse button is released
ondragenter IE5, N Triggered when the object being dragged by the mouse enters the range of its container
ondragleave IE5, N Triggered when an object being dragged by the mouse leaves the container's range
ondragover IE5, N Triggered when a dragged object is dragged over another object's container
ondragstart IE4, N Triggered when an object is about to be dragged
ondrop IE5, N Triggered when a mouse button is released during a drag operation
onlosecapture IE5, N Triggered when an element loses the focus of selection caused by mouse movement
onpaste IE5, N Triggered when content is pasted
onselect IE4, N Event triggered when text content is selected
onselectstart IE4, N Event triggered when text selection is about to start

Data Binding Total of 10 types

Event Browser Support Description
onafterupdate IE4, N Triggered when data transfer from the data source to the object is complete
oncellchange IE5, N When the data source changes
ondataavailable IE4, N Triggered when data reception is complete
ondatasetchanged IE4, N Event triggered when data changes in the data source
ondatasetcomplete IE4, N Triggered when all valid data from the data source has been read
onerrorupdate IE4, N Instead of onAfterUpdate event when data transfer is canceled by using the onBeforeUpdate event
onrowenter IE5, N Event triggered when the current data source data changes and there is new valid data
onrowexit IE5, N Event triggered when the current data source data is about to change
onrowsdelete IE5, N Triggered when the current data record is to be deleted
onrowsinserted IE5, N Event triggered when the current data source is about to insert a new data record

External Events Total of 6 types

Event Browser Support Description
onafterprint IE5, N Triggered after the document is printed
onbeforeprint IE5, N Triggered before the document is printed
onfilterchange IE4, N Triggered when the filter effect of an object changes
onhelp IE4, N Triggered when the user presses F1 or selects the browser's help option
onpropertychange IE5, N Triggered when one of the object's properties changes
onreadystatechange IE4, N Triggered when the object's ready state changes