Add Event Listener


/ Published in: JavaScript
Save to your folder(s)

Cross-browser implementation of element.addEventListener(). Simple, straightforward, and functional.

Useage:
addListener(window, 'load', myFunction);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.