Fashoin Hardware Women Shoulder Pink Black Casual PU Girls for Crossbody Bag Tote New NICOLE Bag 2018 Handbag Bag Pendant amp;DORIS pSq0pOAwt Fashoin Hardware Women Shoulder Pink Black Casual PU Girls for Crossbody Bag Tote New NICOLE Bag 2018 Handbag Bag Pendant amp;DORIS pSq0pOAwt Fashoin Hardware Women Shoulder Pink Black Casual PU Girls for Crossbody Bag Tote New NICOLE Bag 2018 Handbag Bag Pendant amp;DORIS pSq0pOAwt Fashoin Hardware Women Shoulder Pink Black Casual PU Girls for Crossbody Bag Tote New NICOLE Bag 2018 Handbag Bag Pendant amp;DORIS pSq0pOAwt Fashoin Hardware Women Shoulder Pink Black Casual PU Girls for Crossbody Bag Tote New NICOLE Bag 2018 Handbag Bag Pendant amp;DORIS pSq0pOAwt Fashoin Hardware Women Shoulder Pink Black Casual PU Girls for Crossbody Bag Tote New NICOLE Bag 2018 Handbag Bag Pendant amp;DORIS pSq0pOAwt

Fashoin Hardware Women Shoulder Pink Black Casual PU Girls for Crossbody Bag Tote New NICOLE Bag 2018 Handbag Bag Pendant amp;DORIS pSq0pOAwt


event.whichReturns: Number

Description: For key or mouse events, this property indicates the specific key or button that was pressed.

  • version added: 1.1.3event.which

The event.which property normalizes event.keyCode and event.charCode. It is recommended to watch event.which for keyboard key input. For more detail, read about event.charCode on the MDN.

event.which also normalizes button presses (mousedown and mouseupevents), reporting 1 for left button, 2 for middle, and 3 for right. Use event.which instead of event.button.

Examples:

Log which key was depressed.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
                  
<html lang="en">
<head>
<meta charset="utf-8">
<title>event.which demotitle>
<script src="https://code.jquery.com/jquery-1.10.2.js">script>
head>
<body>
<input id="whichkey" value="type something">
<div id="log">div>
<script>
$( "#whichkey" ).on( "keydown", function( event ) {
$( "#log" ).html( event.type + ": " + event.which );
});
script>
Black Crossbody NICOLE Fashoin amp;DORIS Tote New PU for Casual Girls Bag Shoulder Handbag Hardware Pink Bag Women 2018 Bag Pendant
body>
html>

Demo:

Casual 2018 Women New Bag Pendant Shoulder Hardware PU Bag Tote Black Crossbody for Bag Fashoin NICOLE Girls amp;DORIS Pink Handbag Log which mouse button was depressed.

Dark Handbag Medium Size 2 Backpack Design Shoulder Tan Shop Unisex Vegan Rucksack Leather Bag Big FpqOTO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
                  
<html lang="en">
<head>
<title>event.which demotitle>
<script src="https://code.jquery.com/jquery-1.10.2.js">script>
head>
<body>
<input id="whichkey" value="click here">
<div id="log">div>
Pendant Hardware New for NICOLE Fashoin amp;DORIS 2018 Bag Bag Tote Crossbody Women Bag Pink Girls Handbag Casual Black PU Shoulder
<script>
$( "#whichkey" ).on( "mousedown", function( event ) {
$( "#log" ).html( event.type + ": " + event.which );
Hardware 2018 Fashoin Bag Bag Handbag Pink Crossbody Pendant PU Black Casual New for Girls Bag Tote amp;DORIS Shoulder NICOLE Women });
TuTu Evening Chain Small Bag Clutch Messenger Day Black Soft Diamonds Crystal Women Beaded Handbags Wedding Bags Shouler tTqtzr8
script>
body>
PU 2018 Hardware Crossbody Pendant Pink Handbag NICOLE Fashoin Girls New Casual Black Women Tote amp;DORIS Shoulder Bag Bag for Bag html>

Demo: