Skip to content

Instantly share code, notes, and snippets.

@simonewebdesign
Last active December 20, 2015 19:19
Show Gist options
  • Save simonewebdesign/6182557 to your computer and use it in GitHub Desktop.
Save simonewebdesign/6182557 to your computer and use it in GitHub Desktop.
JavaScript how to get all events in window object
var ev = '',
out = [];
for (ev in window) {
if (/^on/.test(ev)) {
out[out.length] = ev;
}
}
console.log(out.join(', '));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment