Blog coding and discussion of coding about JavaScript, PHP, CGI, general web building etc.

Saturday, December 19, 2015

Reference that lists available JavaScript events?

Reference that lists available JavaScript events?


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?

Answer by Jeremy Ruten for Reference that lists available JavaScript events?


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

Answer by Stan for Reference that lists available JavaScript events?


Here is a pretty good JavaScript event reference with the elements they are for:
JavaScript Tutorial >> JavaScript Events

Answer by GateKiller for Reference that lists available JavaScript events?


This Javascript Cheat Sheet has a complete list of of event handlers. Nearly all of them can be used on any html element except for one or two.

If you want to use a lightweight javascript library, DOMAssistant is very lightweight and allows you to add events to elements very easily. Like so:

$("#navigation a").addEvent("click", myFunc);

Answer by doekman for Reference that lists available JavaScript events?


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

Answer by travis for Reference that lists available JavaScript events?


If you're going to be working with events (setting custom functions and event handlers), then I'd recommend checking out the jQuery library. It makes event binding so much easier than doing it by hand.


Fatal error: Call to a member function getElementsByTagName() on a non-object in D:\XAMPP INSTALLASTION\xampp\htdocs\endunpratama9i\www-stackoverflow-info-proses.php on line 71

0 comments:

Post a Comment

Popular Posts

Powered by Blogger.