nsIDOMNSEventTarget

IID:6cbbbf64-212f-4ef8-9ad4-7240dbb8d6ac
Inherits From:nsISupports

The nsIDOMNSEventTarget interface is an extension to the standard nsIDOMEventTarget interface, implemented by all event targets in the Document Object Model.


Methods

void addEventListener ( DOMString type , nsIDOMEventListener listener , PRBool useCapture , PRBool wantsUntrusted )

void addEventListener ( DOMString type , nsIDOMEventListener listener , PRBool useCapture , PRBool wantsUntrusted )

This method is the same as the addEventListener() method defined in nsIDOMEventTarget, but it takes one additional argument which lets callers control whether or not they want to receive untrusted events (synthetic events generated by untrusted code)

Arguments:
type: See the type argument to the same method in nsIDOMEventTarget.
listener: See the listener argument to the same method in nsIDOMEventTarget.
useCapture: See the listener argument to the same method in nsIDOMEventTarget.
wantsUntrusted: If false, the listener will not receive any untrusted events (see above), if true, the listener will receive events whether or not they're trusted

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com