HTML Event Object

Source: Internet
Author: User

Event Object

The event object represents the state of the incident, such as the element in which the event occurred, the state of the keyboard key, the position of the mouse, and the state of the mouse button.

Events are often used in conjunction with functions, and functions are not executed until the event occurs!

Onabort The loading of the image is interrupted.
Onblur Element loses focus.
OnChange The contents of the domain are changed.
OnClick The event handle that is invoked when the user taps an object.
OnDblClick The event handle that is invoked when the user double-clicks an object.
OnError An error occurred while loading the document or image.
onfocus Element gets the focus.
OnKeyDown One of the keyboard keys is pressed.
onkeypress One of the keyboard keys is pressed and released.
OnKeyUp A keyboard key is released.
OnLoad A page or an image to finish loading.
OnMouseDown The mouse button is pressed.
OnMouseMove The mouse is moved.
onmouseout The mouse moves away from an element.
onmouseover Move the mouse over an element.
OnMouseUp The mouse button is loosened.
OnReset The reset button is clicked.
OnResize The window or frame is resized.
Onselect Text is selected.
OnSubmit Confirm that the button is clicked.
OnUnload The user exits the page.

HTML Event Object

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.