HTML event list

Source: Internet
Author: User
General events:
Onclick HTML: A mouse click event. You can click the event within the control range of an object.
Ondblclick HTML: Double-click event
Onmousedown HTML: the mouse button is pressed
Onmouseup HTML: events triggered when the mouse is pressed and released
Onmouseover HTML: The event triggered when you move the cursor over an object range.
Onmousemove HTML: The event triggered when the mouse moves
Onmouseout HTML: The event triggered when the mouse leaves an object range.
Onkeypress HTML: events triggered when a key on the keyboard is pressed and released. [Note: the page must contain focused objects]
Onkeydown HTML: events triggered when a key on the keyboard is pressed [NOTE: The page must contain focused objects]
Onkeyup HTML: events triggered when a button on the keyboard is pressed and opened [NOTE: The page must contain focused objects]

Page related events:
Onabort HTML: The image is interrupted by the user during download.
Onbeforeunload HTML: event triggered when the content of the current page is about to be changed
Onerror HTML: capture errors on the current page for some reason, such as script errors and external data references.
Onload HTML: events triggered when the page is empty and transferred to the browser, including external file introduction completed
Onmove HTML: events triggered when the browser window is moved
Onresize HTML: event triggered when the browser's window size is changed
Onscroll HTML: events triggered when the browser's scroll bar position changes
Onstop HTML: events triggered when the stop button of the browser is pressed or files being downloaded are interrupted.
OnUnload HTML: event triggered when the current page is changed

Form-related events:
Onblur HTML: events triggered when the current element loses focus [both the mouse and keyboard can be triggered]
Onchange HTML: events triggered when the current element loses focus and the content of the element changes [both mouse and keyboard triggers]
Onfocus HTML: The event triggered when an element obtains focus.
Onreset HTML: The event triggered when the reset attribute in the form is fired.
Onsubmit HTML: event triggered when a form is submitted

Rolling subtitle events:
Onbounce HTML: events triggered when content in marquee is moved out of the marquee display range
Onfinish HTML: The event triggered when the marquee element completes the content to be displayed
Onstart HTML: events triggered when the marquee element begins to display content

edit event:
onbeforecopy HTML: event triggered when the selected content on the page is to be copied to the viewer's clipboard
onbeforecut HTML: events triggered when part or all of the content on the page is removed from the current page [clipboard] and moved to the browser's system clipboard
onbeforeeditfocus HTML: the current element is about to enter the editing status
onbeforepaste HTML: The event triggered when the content will be transferred [pasted] to the page from the browser's system clipboard
onbeforeupdate HTML: the target object is notified when the viewer pastes the content in the system clipboard.
oncontextmenu HTML: the event triggered when the viewer presses the right-click menu or triggers the page menu by pressing the keyboard. [try adding oncontentmenu = "Return false" to the page to prohibit right-clicking.]
oncopy HTML: events triggered when the selected content on the page is copied
oncut HTML: events triggered when the selected content on the page is cut
ondrag HTML: event [activity event]
ondragdrop HTML: an external object is dragged to the current window or frame by the mouse
ondragend HTML: the event triggered when the mouse is dragged, that is, the mouse button is released
ondragenter HTML: events triggered when an object dragged by the mouse enters the container range
ondragleave HTML: event triggered when an object dragged by the mouse leaves its container range
ondragover HTML: event [activity event]
ondragstart HTML: events triggered when an object is dragged
ondrop HTML: events triggered when the mouse key is released during a drag operation
onlosecapture HTML: event triggered when an element loses the focus of selection formed by moving the mouse
onpaste HTML: event triggered when the content is pasted
onselect HTML: event when text content is selected
onselectstart HTML event triggered when text content is selected

Data Binding:
Onafterupdate HTML: event triggered when data is transferred from the data source to the object
Oncellchange HTML: when the data source changes
Ondataavailable HTML: triggers an event when data is received.
Ondatasetchanged HTML: event triggered when data source changes
Ondatasetcomplete HTML: The event triggered when all valid data of the Child data source is read.
Onerrorupdate HTML: The onafterupdate event is replaced when the data transfer is canceled when the onbeforeupdate event is triggered.
Onrowenter HTML: events triggered when the data of the current data source changes and new valid data exists
Onrowexit HTML: event triggered when the data of the current data source is about to change
Onrowsdelete HTML: event triggered when the current data record is deleted
Onrowsinserted HTML: event triggered when the current data source is about to insert a new data record

External events:
Onafterprint HTML: events triggered when a document is printed
Onbeforeprint HTML: event triggered when the document is about to be printed
Onfilterchange HTML: event triggered when the filter effect of an object changes
Onhelp HTML: The event triggered when the viewer presses F1 or the browser's help Selection
Onpropertychange HTML: event triggered when one of the object's attributes changes
Onreadystatechange HTML: event triggered when the object's initialization property value changes

From jb04321zy blog from: http://jb04321zy.blog.163.com/blog/static/49469399200711713542499/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.