Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get all events supported by a particular browser
function getBrowserEvents ()
var browserEvents = [];
for (var e in document) if (typeof document[e] !== "function" && e !== null && e.substring(0, 2) === "on") browserEvents[browserEvents.length] = e.substring(2);
return browserEvents;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.