Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reference that lists available JavaScript events? [closed]

Tags:

I'm aware of things like onchange, onmousedown and onmouseup but is there a good reference somewhere that lists all of them complete with possibly a list of the elements that they cover?

like image 759
Teifion Avatar asked Aug 09 '08 06:08

Teifion


People also ask

How do you find out which JavaScript Events fired?

Open Google Chrome and press F12 to open Dev Tools. Go to Event Listener Breakpoints, on the right: Click on the events and interact with the target element.

What is event delegation JavaScript?

Event Delegation is basically a pattern to handle events efficiently. Instead of adding an event listener to each and every similar element, we can add an event listener to a parent element and call an event on a particular target using the . target property of the event object.

What is addEventListener in JavaScript?

The addEventListener() is an inbuilt function in JavaScript which takes the event to listen for, and a second argument to be called whenever the described event gets fired. Any number of event handlers can be added to a single element without overwriting existing event handlers. Syntax: element.


2 Answers

W3Schools seems to have a good Javascript events reference: HTML DOM Events

like image 62
Paige Ruten Avatar answered Sep 25 '22 17:09

Paige Ruten


Quirksmode has a nice event-compatibility table and an introduction.

like image 39
doekman Avatar answered Sep 25 '22 17:09

doekman