Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

342
Views
What does "return event.keyCode !== 69" mean?

I have this snippet of code in my html file:

<input autocomplete="off" autofocus name="month" placeholder="Month" type="number" onkeydown="return event.keyCode !== 69">

It works exactly as I want it to - doesn't let the user put "e" in a form when they type in their birthday. But how exactly does it work? What does "!== 69" return, and how does it prevent the letter "e" from appearing on the screen?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

It works this way because the number 69 indicates the code for the letter "E" for Keycode values, as you can see in this link: https://css-tricks.com/snippets/javascript/javascript-keycodes/
about 4 years ago · Airton Teixeira Vasconcelos Junior Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!