jQuery event.which Property
Return which keyboard key was pressed:
$("div").html("Key: " + event.which);
Try it yourself »
Definition and Usage
The event.which property returns which keyboard key or mouse button was pressed for the event.
|event||Required. The event parameter comes from the event binding function|
which mouse button was pressed
Show which mouse button was pressed for the event.
Thank You For Helping Us!
Your message has been sent to W3Schools.