s@rdalya

 

EventObject

Page history last edited by vozcelik 3 yrs ago


 

EventObject

(extends Object)


Object Summary

 

A cross-browser method to handle event-specific issues such as cancelling the default action.


Constructor

 

EventObject(evt)

 

parameters

evt - Reference to the event. If not given, defaults to window.event -the IE case-.


Methods

 

EventObject.cancelDefaultAction()

 

comments

Cancels the default action related to the event. For instance if the event is onclick event attached to the link, calling this method will prevent redirection to the link's HREF after the click event of the link.


EventObject.getSource()

 

returns

The source element.

 

comments

Gets the source element of the event.


EventObject.getObject()

 

returns

The event object.

 

comments

Gets the event instance.


See Also

 

EventHandler

EventModel

EventRegistry


Usage Examples

 

None given. Be the first one to add a usage example!

Comments (0)

You don't have permission to comment on this page.