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.
Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.
