Touch events for mobile touchscreen web pages

Source: Internet
Author: User

PC-side Web page has developed from scratch, people are accustomed to the mouse and keyboard human-computer interaction mode, so in the PC-side web development generally use mouse events and keyboard events.

Mouse event:

OnClick event: Occurs when the left or right mouse button is clicked.

OnDoubleClick event: Occurs when the left mouse button is double-clicked.

The onmousedown event occurs when a mouse button is clicked (left, right, or middle) and has not been released.

OnMouseMove Event: Occurs when the mouse cursor moves.

OnMouseUp event: Occurs when the mouse button is released (left, right, or middle).

onMouseOver event: Occurs when the mouse cursor moves over an object.

onMouseOut event: Occurs when the mouse cursor leaves the object.

Ommousewheel event: Occurs when the mouse wheel is moved.

Keyboard event:

onkeypress Event: Occurs when a key is pressed and released.

OnKeyDown Event: Occurs after a key is pressed (before the key is released).

OnKeyUp Event: Occurs when a key is released.

Touch events for mobile touchscreen web pages

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.