Home  >  Article  >  Web Front-end  >  js mouse and keyboard event example code_javascript skills

js mouse and keyboard event example code_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:02:211534browse

1. Which mouse button was clicked?


[Ctrl A Select all Note: If you need to introduce external Js, you need to refresh to execute
]

2. The current mouse cursor What are the coordinates?

[Ctrl A Select all Note:
If you need to introduce external Js, you need to refresh to execute
]
3. The key is pressed What is the unicode code?
[Ctrl A Select all Note:
If you need to introduce external Js, you need to refresh to execute
]
Click the left button of your mouse

[Ctrl A Select all Note:
If you need to introduce external Js, you need to refresh to execute
]
Click the left button of your mouse


[Ctrl A Select All Note:
If you need to introduce external Js, you need to refresh to execute
Press the shit key and click the left button of your mouse


[Ctrl A Select all Note: Or you can click here, this is h3
Do you want to click on me? ?
[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute ]
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn