Add/Remove an Event
Use this set of snippets to add or remove events from your scripts. Consists of two functions: addEvent and removeEvent.
- Created by: Caleb Duke
- Web Site: http://www.askapache.com/
- Posted: November 17, 2006
obj' parameter: The object which is the focus of the event to be called.
type' parameter: The name of the event, e.g., "click" or "submit".
fn' parameter: Reference to a function that is to be called once the event fires. Requires a parameter.
Paste this source code into the designated areas.
Paste this code into the
HEAD section of your HTML document.