What is the functionality of Javascript event e.which? Please brief with example.
What is the functionality of Javascript event e.which ? Please brief with example.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Deprecation notice (as of September 2020)
KeyboardEvent.which has been deprecated. Please look for alternatives, such as KeyboardEvent.key. Read the full API here.
e.whichis not an event,whichis a property of theeventobject, which most people label asein their event handlers. It contains the key code of the key which was pressed to trigger the event (eg: keydown, keyup).With that code, the console will print out the code of any key you press on the keyboard.