Event Listeners
General
Add event listeners for all browsers at once. Easy to use, for all browsers.
Notes
- Created by: Gavin Kistner
- Web Site: http://phrogz.net
- Posted: October 3, 2008
Cross browser attach event function. For 'evt' pass a string value with the leading "on" omitted
e.g.AttachEvent(window,'load',MyFunctionNameWithoutParenthesis,false);
Source Code
Paste this source code into the designated areas.
External file
Paste this code into an external JavaScript file named: eventListeners.js
Head
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