JS Mouse Event collation-------Day47

Source: Internet
Author: User

Come back some late today, is really sleepy, no longer do new applications, summary review before the function of the implementation, but is filled with emotion, today June 24, is actually a more meaningful day, the beginning of last year, I entered the software industry, and now, has been a year, there is also a lack of harvest, I can't imagine what I look like next year, but I would like to keep trying and refueling.


The first few days in the interactive to do some collation records, generally summed up the main two: keyboard and mouse.

Keyboard Although a lot of keys, but the whole event is only two:onkeydown and OnKeyUp, and some people say there are still onkeypress, this I have not used, for the moment first write it down.

And the mouse event is a lot of, before used to have:

* Above the suspension range, leaving the range of onmouseover and onmouseout

* Click on the mouse's onclick

* onmouseup and onmousedown with Mouse pressed, bouncing

* onmousemove of mouse movement

*OnContextMenu should not be a mouse event ha, but actually solved the right-click problem

Then there are still events that are not used:

* Double-click the onDblClick

* dommousescroll or onmousewheel of roller events

For the moment for interaction on the note these, touch screen kind of later on, these should be all the events, there?


Hero Road, a step ....



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.