The nsIDOMNSEventTarget interface is an extension to the standard nsIDOMEventTarget interface, implemented by all event targets in the Document Object Model.
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)
- 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.