Implemented by
The nsIDOMNSEventTarget interface is an extension to the standard nsIDOMEventTarget interface, implemented by all event targets in the Document Object Model.
[scriptable, uuid(6cbbbf64-212f-4ef8-9ad4-7240dbb8d6ac)]
interface nsIDOMNSEventTarget : nsISupports
Methods
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)
@param type See the type argument to the same method in
nsIDOMEventTarget.
@param listener See the listener argument to the same method in
nsIDOMEventTarget.
@param useCapture See the listener argument to the same method in
nsIDOMEventTarget.
@param 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
void
addEventListener(in DOMString type, in nsIDOMEventListener listener, in boolean useCapture, in boolean wantsUntrusted)
Compare to: