October 24, 2024
Chicago 12, Melborne City, USA
HTML

the Window API documentation doesn't show keydown as an eventlistener but it works


I’ve been following a tutorial in which the following line was written :

    window.addEventListener('keydown',dosomething())

I went to official window api documentation and looked through the list of available events but keydown was not present in there.

so an event listener that isn’t listed in the documentation is working; am I missing something or is the documentation out of date ? and if yes, where can one find the full list of available event listeners that can be used ?



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video