ExampleShow which key was pressed:
Try it yourself » |
The which property specifies which key or button was pressed for the event.
This property can be used on key and button events.
event.which |
Parameter | Description |
---|---|
event | Required. Specifies the event to check. The event parameter comes from the event binding function |