Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi !


I want to know what clicks on the browser(Chrome) triggers what action. 
When I press the A button on a page, I want to detect and record it. 
How can I do it ?  


What I have tried:

monitorEvents(document.body, "click");
Posted
Updated 28-Jun-17 1:06am

1 solution

"Click"s refer to mouse clicks.
"Keys" are on the keyboard.
Look at the "keyPress" & "keyDown" events

Keyboard Events | jQuery API Documentation[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900