Public Member Functions | Public Attributes

nsIDOMNSEventTarget Interface Reference

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

import "nsIDOMNSEventTarget.idl";

List of all members.

Public Member Functions

void addEventListener (in DOMString type, in nsIDOMEventListener listener, in boolean useCapture,[optional] in boolean 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).

Public Attributes

attribute PRUint32 scriptTypeID
 The default script type (language) for events firing on this target.

Detailed Description

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


Member Function Documentation

void nsIDOMNSEventTarget::addEventListener ( in DOMString  type,
in nsIDOMEventListener  listener,
in boolean  useCapture,
[optional] in boolean  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).

Parameters:
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

Member Data Documentation

The default script type (language) for events firing on this target.

Must be one of the nsIProgrammingLanguage enums, but must not be nsIProgrammingLanguage::UNKNOWN. Most implementations will provide a default type of nsIProgrammingLanguage::JAVASCRIPT.

All targets must support fetching the script language, but not all script targets must support changing it - ie, some targets may only support event handlers written in their default language.


The documentation for this interface was generated from the following file: