"HTML" "4" HTML event collection

Source: Internet
Author: User

Must-see reference:

Http://www.runoob.com/tags/ref-eventattributes.html

Http://www.cnblogs.com/jiangchongwei/archive/2008/05/30/1211001.html

Http://www.w3school.com.cn/tags/html_ref_eventattributes.asp

Common:

General events:
OnClick HTML: mouse click event, which is more used in the context of an object-controlled 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
OnMouseOverHTML: An event that fires 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
OnLoadHTML: An event that fires when a page is empty to complete a transfer to the browser.including external file ingestion complete
OnMove HTML: Event triggered when a browser's window is moved
onResizeHTML: When the browser'swhen the window size is changedEvents that are triggered
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: Current elementtrigger when losing focusevents [Mouse and keyboard trigger can]
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: When an elementwhen you get focusEvents that are triggered
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: Inside the Marqueeevents that are triggered when the tolerance is moved outside of 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: When awhen an object is draggedEvent triggered [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: WhenWhen text content is selectedof events
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

Events for understanding can be, which master the onclick can, with jquery to write JS event logic

"HTML" "4" HTML event collection

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.