Html Event List

Source: Internet
Author: User

Html Event List General events:
OnClick HTML: Mouse Click event, multi-use in the scope of an object control mouse click
OnDblClick HTML: Mouse Double-click event
OnMouseDown HTML: The button on the mouse is pressed
OnMouseUp HTML: Events fired when the mouse is pressed and released
OnMouseOver HTML: Event triggered when the mouse moves over a range of objects
OnMouseMove HTML: Events triggered when the mouse moves
onmouseout HTML: Events that are triggered when the mouse leaves an object range
OnKeyPress HTML: An event that is triggered when a key on the keyboard is pressed and released. [Note: There must be a focused object within the page]
OnKeyDown HTML: Event triggered when a key on the keyboard is pressed [Note: There must be a focused object in the page]
OnKeyUp HTML: Event triggered when a key on the keyboard is pressed to release [note: There must be a focused object in the page]

Page-related events:
Onabort HTML: Image is interrupted by user when downloading
onBeforeUnload HTML: Event triggered when the content of the current page is about to be changed
OnError HTML: Capture the current page for some reason, errors such as script errors and external data references
OnLoad HTML: Events that are triggered when the page is empty to complete the transfer to the browser, including external file ingestion complete
OnMove HTML: Event triggered when a browser's window is moved
OnResize HTML: Events that are triggered when the browser's window size is changed
Onscroll HTML: Event triggered when a browser's scroll bar position is changed
OnStop HTML: Event triggered when the stop button of the browser is pressed or the file being downloaded is interrupted
OnUnload HTML: Event triggered when the current page will be changed

Form-related events:
OnBlur HTML: Event triggered when the current element loses focus [both mouse and keyboard triggers]
OnChange HTML: Events that are triggered when the current element loses focus and the content of the element changes [both mouse and keyboard triggers]
onfocus HTML: Events that are triggered when an element receives focus
OnReset HTML: Event triggered when the properties of reset in a form are fired
OnSubmit HTML: Event triggered when a form is submitted

Scrolling Caption Event:
Onbounce HTML: Events that are triggered when content within marquee is moved outside the marquee display range
OnFinish HTML: Events that are triggered when the MARQUEE element finishes what needs to be displayed
OnStart HTML: Events that are triggered when the marquee element starts displaying content

To edit an event:
Onbeforecopy HTML: Event triggered before the current selection of the page will be copied to the Clipboard of the viewer system
Onbeforecut HTML: Event triggered when part or all of the contents of a page is moved away from the current page [clip] and moved to the viewer's system Clipboard
Onbeforeeditfocus HTML: The current element will go into edit state
Onbeforepaste HTML: Event triggered when content is going to be transferred from the viewer's system Clipboard [paste] to the page
onbeforeupdate HTML: Notifies the target object when the viewer pastes the contents of the system Clipboard
OnContextMenu HTML: Event triggered when a viewer presses the right mouse button to a menu or triggers a page menu with a keyboard key [try adding oncontentmenu= "return false" to the page to disable the right mouse button]
Oncopy HTML: Events that are triggered when the page's current selection is copied
Oncut HTML: Event triggered when the current selection of a page is clipped
Ondrag HTML: Event triggered when an object is dragged [active event]
Ondragdrop HTML: An external object is dragged into the current window or frame by the mouse
Ondragend HTML: The event that is triggered when the mouse drag is finished, that is, the mouse button is released
OnDragEnter HTML: An event that fires when an object is dragged into its container by a mouse.
OnDragLeave HTML: An event that fires when an object is dragged from its container by the mouse.
OnDragOver HTML: Event triggered when a dragged object is dragged within the scope of another object's container [active event]
Ondragstart HTML: Events that are triggered when an object is dragged
OnDrop HTML: An event that fires when a mouse button is released during a drag
Onlosecapture HTML: Event triggered when an element loses the selection focus formed by mouse movement
Onpaste HTML: Events that are triggered when content is pasted
OnSelect HTML: Event When text content is selected
Onselectstart HTML when the text Content selection will start to occur when the event is triggered

Data binding:
Onafterupdate HTML: Event triggered when data is completed by data source to object transfer
Oncellchange HTML: When the data source is changed
ondataavailable HTML: Triggering an event when data reception is complete
ondatasetchanged HTML: Events triggered when data changes in the data source
Ondatasetcomplete HTML: Event triggered when all valid data for a child data source is read
onerrorupdate HTML: Instead of onafterupdate event when data transfer is canceled with onbeforeupdate Event trigger
onrowenter HTML: Events that are triggered when the data of the current data source changes and there are new valid data
onrowexit HTML: Events that are triggered when the data of the current data source is going to change
Onrowsdelete HTML: Events that are triggered when the current data record is deleted
Onrowsinserted HTML: Event that is triggered when the current data source is about to insert a new data record

External events:
Onafterprint HTML: Events that are triggered when a document is printed
Onbeforeprint HTML: Events that are triggered when a document is about to be printed
Onfilterchange HTML: Events that are triggered when the filter effect of an object changes
OnHelp HTML: Event triggered when a viewer presses F1 or a browser's help selection
Onpropertychange HTML: Event triggered when one of the properties of an object has changed
onReadyStateChange HTML: Event triggered when an object's initialization property value changes

Turn from Jb04321zy's blog from:http://jb04321zy.blog.163.com/blog/static/49469399200711713542499/

Html Event List

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.