Javascript event details

Source: Internet
Author: User

Description of JavaScript event list
Event browser support explanation
General events

Onclick
This event is triggered when ie3 and N2 are clicked.
This event is triggered when you double-click an ondblclick ie4 or N4 mouse.
Onmousedown ie4 and N4 trigger this event when you press the mouse
This event is triggered when onmouseup ie4 and N4 are clicked and the mouse is released.
Onmouseover ie3 and N2 trigger this event when you move the mouse over an object range
This event is triggered when the onmousemove ie4 and N4 are moved.
Onmouseout ie4 and N3 trigger this event when the mouse leaves a certain object range
Onkeypress ie4 and N4 trigger this event when a key on the keyboard is pressed and released.
Onkeydown ie4, N4 this event is triggered when a key on the keyboard is pressed
Onkeyup ie4, N4 this event is triggered when a button on the keyboard is pressed and opened
Page related events

Onabort
Ie4 and N3 images are interrupted by users during download
Onbeforeunload ie4, n this event is triggered when the content of the current page is about to be changed
This event is triggered when an error occurs in onerror ie4 and N3.
This event is triggered when the onload ie3 and N2 page content is complete.
This event is triggered when the windows of the onmove IE and N4 browsers are moved.
Onresize ie4 and N4 trigger this event when the browser's window size is changed
This event is triggered when the position of the onscroll ie4 or N browser's scroll bar changes.
This event is triggered when the stop button of the onstop ie5 or N browser is pressed or the file being downloaded is interrupted.
This event is triggered when the current page of onUnload ie3 and N2 is changed.
Form-related events

Onblur
This event is triggered when the current element of ie3 and N2 loses focus.
Onchange ie3, N2: this event is triggered when the current element loses focus and the content of the element changes.
Onfocus ie3 and N2 trigger this event when an element obtains focus
Onreset ie4, N3 this event is triggered when the reset attribute in the form is fired
This event is triggered when an onsubmit ie3 or N2 form is submitted.
Rolling subtitle events

Onbounce
This event is triggered when the content of ie4 and N in marquee is moved out of the marquee display range.
Onfinish ie4, n this event is triggered when the marquee element completes the content to be displayed
Onstart ie4, n this event is triggered when the marquee element begins to display content
Edit event

Onbeforecopy
Ie5, n this event is triggered when the selected content on the page is to be copied to the clipboard of the browser System
Onbeforecut ie5, n this event is 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 ie5, n the current element will enter the editing status
This event is triggered when onbeforepaste ie5 and N content is to be transferred [pasted] to the page from the browser's system clipboard
Onbeforeupdate ie5 and N notify the target object when the viewer pastes the content in the system clipboard.
Oncontextmenu ie5 and N events triggered when the viewer presses the right-click menu to display the event or triggers the page menu by pressing the keyboard button
Oncopy ie5, n this event is triggered when the selected content on the page is copied
Oncut ie5, n this event is triggered when the selected content on the page is cut
Ondrag ie5 and N: this event is triggered when an object is dragged. [activity event]
Ondragdrop IE, N4 an external object is dragged into the current window or frame by the mouse
Ondragend ie5, n this event is triggered when the mouse drag ends, that is, the mouse button is released
Ondragenter ie5, n this event is triggered when the object is dragged by the mouse into its container range
Ondragleave ie5, n this event is triggered when the object is dragged by the mouse out of its container range
Ondragover ie5, n this event is triggered when a dragged object is dragged within the range of another object container
Ondragstart ie4, n this event is triggered when an object is dragged
Ondrop ie5 and N trigger this event when the mouse key is released during a drag process
Onlosecapture ie5, n this event is triggered when the selection focus formed by the element's mouse movement is lost
Onpaste ie5 and N trigger this event when the content is pasted
Onselect ie4, N event when text content is selected
Onselectstart ie4 and N events triggered when the text content is selected
Data Binding

Onafterupdate
Ie4, n this event is triggered when data is transferred from the data source to the object.
Oncellchange ie5 and N when the data source changes
Ondataavailable ie4 and N trigger an event when data reception is complete
Ondatasetchanged ie4 and N events triggered when data sources change
Ondatasetcomplete ie4 and n this event is triggered when all valid data of the sub-data source is read.
Onerrorupdate ie4 and N Replace the onafterupdate event when the onbeforeupdate event is triggered to cancel Data Transmission
Onrowenter ie5, N events triggered when the data in the current data source changes and new valid data exists
Onrowexit ie5 and N events triggered when the data in the current data source is about to change
This event is triggered when the onrowsdelete ie5 and N current data records are deleted.
Onrowsinserted ie5 and n this event is triggered when the current data source is about to insert a new data record
External events

Onafterprint
Ie5, n this event is triggered when the document is printed
Onbeforeprint ie5, n this event is triggered when the document is about to be printed
Onfilterchange ie4, N events triggered when the filter effect of an object changes
Onhelp ie4, n this event is triggered when the viewer presses F1 or the browser's help Selection
Onpropertychange ie5, n this event is triggered when one of the object's properties Changes
Onreadystatechange ie4, n this event is triggered when the object's initialization property value changes

Onactivate is triggered when the object is set to an active element.
Onafterupdate is triggered when the associated object in the data source object is updated successfully on the Data Binding object.
Onbeforedeactivate is triggered immediately before activeelement changes from the current object to another object in the parent document.
Onbeforeupdate is triggered on the Data Binding object before the associated objects in the data source object are successfully updated.
Onblur is triggered when the object loses the input focus.
Oncontrolselect is triggered when you want to create a control area for this object.
Ondeactivate is triggered when activeelement changes from the current object to another object in the parent document.
Onerrorupdate is triggered when an error occurs while updating the associated data in the data source object.
Onfocus is triggered when the object obtains the focus.
Onload is triggered immediately after the browser completes object loading.
Onmove is triggered when the object is moved.
Onmoveend is triggered when the object is stopped.
Onmovestart is triggered when the object begins to move.
Onreadystatechange is triggered when the object state changes.
Onresizeend is triggered when you change the object size in the selected area of the control.
Onresizestart is triggered when you start to change the object size in the selected area of the control.
Ontimeerror is triggered unconditionally when an error occurs at a specific time. It is usually caused by setting the attribute to an invalid value.

Related Article

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.