Attributes

From nsIJSXMLHttpRequest

 Meant to be a script-only mechanism for setting a callback function.
 The attribute is expected to be JavaScript function object. When the
 readyState changes, the callback function will be called.
 This attribute should not be used from native code!!

 After the initial response, all event listeners will be cleared.
 Call open() before setting new event listeners.
attribute nsIOnReadyStateChangeHandler onreadystatechange