wwEvent.addEventListener

Hooks up an event handler to a DOM event. This mechanism is additive so multiple handlers can be attached to the same event.

Note this method is static which means you don't need to instantiate an object:

wwEvent.addEventListener(document,"mousemove",Instance.mouseMove,false);


o.wwEvent.addEventListener(target,eventname,handler,bubbles)

Parameters

target
DOM Element instance

eventname
Name of the event as a string (ie. click, change, mousedown etc.)

handler
Function pointer to the handler function that will handle this event.

bubbles
true if you want event bubbling to continue - false if you want it to stop propagating.

See also:

Class wwEvent


  Last Updated: 12/17/2006 | © West Wind Technologies, 2008