Event Listeners | JavaScriptSource

Event Listeners

Gavin Kistner Oct 3, 2008


Add event listeners for all browsers at once. Easy to use, for all browsers.


Cross browser attach event function. For 'evt' pass a string value with the leading "on" omitted e.g.


Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: eventListeners.js


Paste this code into the HEAD section of your HTML document.

Leave a Response

(1 comment)

Hi,[br /]nice site! Where is the demo of the event snipplet? donno what it is until I see it.[br /]Thanks![br /]Jow

jow Oct 11, 2008