| Overview | Index | GodLikeMouse JavaScript Framework |
| FRAMES | NO FRAMES |
GLM.Event.AddEventHandler( element, eventName, handlerFunction )
Method for adding an event handler to an element.
Parameters:
element - The element to add the event handler to.
eventName - The event name to subscribe to.
handlerFunction - The function to handle the event.
Example:
function myOnClick(){
alert("myOnClick called.);
}
GLM.Event.AddEventHandler("document", "click", myOnClick); //add event handler
| Overview | Index | GodLikeMouse JavaScript Framework |
| FRAMES | NO FRAMES |