JS mouse events what are JS mouse events?

Source: Internet
Author: User
Tags valid

General events
Event Browser support Description
OnClick HTML: 1 | 3 | 3.2 | 4

Browser: IE3 | N2 | O3

Click an event.
OnDblClick HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N4 | O

Double-click event
OnMouseDown HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N4 | O

The button on the mouse is pressed.
OnMouseUp HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N4 | O

Events triggered when the mouse is pressed and released
OnMouseOver HTML: 1 | 3 | 3.2 | 4

Browser: IE3 | N2 | O3

Event triggered when you move the cursor over an object range
OnMouseMove HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N4 | O

Events triggered when you move the mouse
OnMouseOut HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N3 | O3

Event triggered when the mouse leaves the range of an object
OnKeyPress HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N4 | O

Events triggered when a key on the keyboard is pressed and released. [note: The page must contain focused objects]
OnKeyDown HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N4 | O

Events triggered when a key is pressed on the keyboard [Note: The page must contain focused objects]
OnKeyUp HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N4 | O

Events triggered when a button on the keyboard is pressed and opened [Note: The page must contain focused objects]
Page related events
Event Browser support Description
OnAbort HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N3 | O

The image is interrupted by the user during download.
OnBeforeUnload HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N | O

Events triggered when the content of the current page is about to be changed
OnError HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N3 | O

Capture errors on the current page for some reason, such as script errors and external data references.
OnLoad HTML: 1 | 3 | 3.2 | 4

Browser: IE3 | N2 | O3

Events triggered when an empty page is sent to the browser, including external file introduction
OnMove HTML: 1 | 3 | 3.2 | 4

Browser: IE | N4 | O

Events triggered when the browser window is moved
OnResize HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N4 | O

Events triggered when the browser window size is changed
OnScroll HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N | O

Events triggered when the browser's scroll bar position changes
OnStop HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Events triggered when the browser stop button is pressed or files being downloaded are interrupted
OnUnload HTML: 1 | 3 | 3.2 | 4

Browser: IE3 | N2 | O3

Events triggered when the current page is changed
Form-related events
Event Browser support Description
OnBlur HTML: 1 | 3 | 3.2 | 4

Browser: IE3 | N2 | O3

Events triggered when the current element loses focus [both mouse and keyboard triggers]
OnChange HTML: 1 | 3 | 3.2 | 4

Browser: IE3 | N2 | O3

Events triggered when the current element loses focus and the element content changes [both mouse and keyboard triggers]
OnFocus HTML: 1 | 3 | 3.2 | 4

Browser: IE3 | N2 | O3

Event triggered when an element gets focus
OnReset HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N3 | O3

Events triggered when the RESET attribute in the form is fired
OnSubmit HTML: 1 | 3 | 3.2 | 4

Browser: IE3 | N2 | O3

Events triggered when a form is submitted
Rolling subtitle events
Event Browser support Description
OnBounce HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N | O

Events triggered when content in Marquee is moved out of the Marquee display range
OnFinish HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N | O

Event triggered when the Marquee element completes the content to be displayed
OnStart HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N | O

Events triggered when the Marquee element starts to display content
Edit event
Event Browser support Description
OnBeforeCopy HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Events triggered when the selected content on the page is to be copied to the viewer's clipboard
OnBeforeCut HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

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: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

The current element is about to enter the editing status.
OnBeforePaste HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

The event that is triggered when the content is to be transferred [pasted] to the page from the browser's system clipboard
OnBeforeUpdate HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

The target object is notified when the viewer pastes the content in the system clipboard.
OnContextMenu HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Events triggered when the viewer presses the right-click menu or triggers the page menu by pressing the keyboard button [try adding onContentMenu = "return false" to <body> on the page to disable the use right-click]
OnCopy HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Events triggered when the selected content on the page is copied
OnCut HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Event triggered when the selected content on the page is cut
OnDrag HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Event [activity event] triggered when an object is dragged
OnDragDrop HTML: 1 | 3 | 3.2 | 4

Browser: IE | N4 | O

An external object is dragged to the current window or frame by the mouse
OnDragEnd HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

The event triggered when the mouse is dragged to the end, that is, the mouse button is released.
OnDragEnter HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Event triggered when an object that is dragged by the mouse enters its container range
OnDragLeave HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Event triggered when an object that is dragged by the mouse leaves its container range
OnDragOver HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Event [activity event] triggered when a dragged object is dragged within the range of another object container
OnDragStart HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N | O

Event triggered when an object is dragged
OnDrop HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

The event triggered when the mouse key is released during a drag process.
OnLoseCapture HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Event triggered when an element loses its focus.
OnPaste HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Events triggered when the content is pasted
OnSelect HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N | O

Event when text content is selected
OnSelectStart HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N | O

Event triggered when the text content is selected
Data Binding
Event Browser support Description
OnAfterUpdate HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N | O

Event triggered when data is transferred from a data source to an object.
OnCellChange HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

When the data source changes
OnDataAvailable HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N | O

Event triggered when data reception is complete
OnDatasetChanged HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N | O

Events triggered when data sources change
OnDatasetComplete HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N | O

Event triggered when all valid data of the child data source is read
OnErrorUpdate HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N | O

When the onBeforeUpdate event is used to trigger the cancellation of data transfer, the onAfterUpdate event is replaced
OnRowEnter HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Events triggered when the data in the current data source changes and new valid data exists
OnRowExit HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Event triggered when the data of the current data source is about to change
OnRowsDelete HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Events triggered when the current data record is deleted
OnRowsInserted HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Events triggered when a new data record is to be inserted to the current data source
External events
Event Browser support Description
OnAfterPrint HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Events triggered when a document is printed
OnBeforePrint HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Events triggered when the document is about to be printed
OnFilterChange HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N | O

Events triggered when the filter effect of an object changes
OnHelp HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N | O

Event triggered when the viewer presses F1 or the browser's help selection
OnPropertyChange HTML: 1 | 3 | 3.2 | 4

Browser: IE5 | N | O

Event triggered when one of the object's attributes changes
OnReadyStateChange HTML: 1 | 3 | 3.2 | 4

Browser: IE4 | N | O

Triggered when the initialization property value of an object changes

Description supported by event Explorer

OnClick IE3 | N2 | O3 mouse click event. You can click the event within the control range of an object.

OnDblClick IE4 | N4 | O double-click event

OnMouseDown IE4 | N4 | O the button on the mouse is pressed

OnMouseUp IE4 | N4 | events triggered when the O Mouse is pressed and released

OnMouseOver IE3 | N2 | the event that is triggered when you move the O3 cursor over an object range

OnMouseMove IE4 | N4 | events triggered when the O cursor moves

OnMouseOut IE4 | N3 | the event that is triggered when the mouse moves out of a certain object range.

OnKeyPress IE4 | N4 | O events triggered when a key on the keyboard is pressed and released. [note: The page must contain focused objects]

OnKeyDown IE4 | N4 | O events triggered when a key on the keyboard is pressed [Note: The page must contain focused objects]

OnKeyUp IE4 | N4 | O events triggered when a key on the keyboard is pressed and opened [Note: The page must contain focused objects]

Webpage-related event description supported by browser

OnAbort IE4 | N3 | O image downloaded by the user

OnBeforeUnload IE4 | N | O events triggered when the content of the current page is about to be changed

OnError IE4 | N3 | O captures errors on the current page for some reason, such as script errors and external data reference errors.

OnLoad IE3 | N2 | events triggered when the content on the O3 page is null and transferred to the browser, including external file introduction completion

OnMove IE | N4 | event triggered when the window of O browser is moved

OnResize IE4 | N4 | O events triggered when the browser's window size is changed

OnScroll IE4 | N | events triggered when the position of the browser's scroll bar changes

OnStop IE5 | N | events triggered when the stop button of O browser is pressed or files being downloaded are interrupted

OnUnload IE3 | N2 | event triggered when the current page of O3 is changed

Description of event events related to forms supported by browser

OnBlur IE3 | N2 | events triggered when the current O3 element loses focus [both mouse and keyboard triggers]

OnChange IE3 | N2 | events triggered when the current O3 element loses focus and the content of the element changes [both mouse and keyboard triggers]

OnFocus IE3 | N2 | O3 event triggered when an element obtains focus

OnReset IE4 | N3 | O3 event triggered when the RESET attribute in the form is fired

OnSubmit IE3 | N2 | events triggered when a form O3 is submitted

Description supported by the browser for rolling subtitle event events

OnBounce IE4 | N | events triggered when the content of O in Marquee is moved out of the Marquee display range

OnFinish IE4 | N | O events triggered when the Marquee element completes the content to be displayed

OnStart IE4 | N | O events triggered when the Marquee element begins to display content

Edit description of event Explorer

OnBeforeCopy IE5 | N | O events triggered when the selected content on the page is to be copied to the browser's clipboard

OnBeforeCut IE5 | N | O 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 IE5 | N | O the current element is about to enter the editing status

OnBeforePaste IE5 | N | the event that is triggered when the O content is to be transferred [pasted] to the page from the browser's system clipboard

OnBeforeUpdate IE5 | N | O notifies the target object when the browser pastes the content in the system clipboard.

OnContextMenu IE5 | N | O events triggered when the viewer presses the right-click menu to display the menu or triggers the page menu by pressing the keyboard. [try adding onContentMenu = "return to <body> false: you cannot right-click it.]

OnCopy IE5 | N | O events triggered when the selected content on the page is copied

OnCut IE5 | N | O events triggered when the selected content on the page is cut

OnDrag IE5 | N | O event triggered when an object is dragged [activity event]

OnDragDrop IE | N4 | O an external object is dragged to the current window or frame by the mouse

OnDragEnd IE5 | N | O event triggered when the mouse is dragged to the end, that is, the mouse button is released

OnDragEnter IE5 | N | O events triggered when an object is dragged by the mouse to enter its container range

OnDragLeave IE5 | N | O events triggered when an object is dragged by the mouse out of its container range

OnDragOver IE5 | N | O events triggered when a dragged object is dragged within the range of another object container

OnDragStart IE4 | N | O event triggered when an object is dragged

OnDrop IE5 | N | O events triggered when the mouse key is released during a drag operation

OnLoseCapture IE5 | N | O events triggered when an element loses its mouse movement and the selected focus

OnPaste IE5 | N | O events triggered when the content is pasted

OnSelect IE4 | N | O event when text content is selected

OnSelectStart IE4 | N | O event triggered when the text content is selected

Description supported by data binding event browser

OnAfterUpdate IE4 | N | O events triggered when data is transferred from the data source to the object

OnCellChange IE5 | N | O when the data source changes

OnDataAvailable IE4 | N | O event triggered when data is received

OnDatasetChanged IE4 | N | O event triggered when data source changes

OnDatasetComplete IE4 | N | O events triggered when all valid data of the child data source is read

OnErrorUpdate IE4 | N | O when the onBeforeUpdate event is triggered to cancel data transfer, the onAfterUpdate event is replaced

OnRowEnter IE5 | N | O events triggered when data in the current data source changes and new valid data exists

OnRowExit IE5 | N | O events triggered when the data in the current data source is about to change

OnRowsDelete IE5 | N | O events triggered when the current data record is deleted

OnRowsInserted IE5 | N | O events triggered when the current data source is about to insert a new data record

Description supported by data binding event browser

OnAfterPrint IE5 | N | O events triggered when a document is printed

OnBeforePrint IE5 | N | O events triggered when the document is about to be printed

OnFilterChange IE4 | N | O events triggered when the filter effect of an object changes

OnHelp IE4 | N | O events triggered when the viewer presses F1 or the browser's help selection

OnPropertyChange IE5 | N | O event triggered when one of the object's attributes changes

OnReadyStateChange IE4 | N | O event triggered when the object's initialization property value changes

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.