Specifies the event handler to be called when the readystate property changes.
Syntax
objXMLDOMDocument.onreadystatechange = value
Remarks
The property is write-only. When using scripting languages, this property can be set in ways other than directly accessing the property through the XMLDOMDocument object. It can also be set using the onreadystatechange attribute of the <XML> tag, and the SCRIPT FOR... construct.
This member is an extension of the W3C DOM.
Example
The following VBScript example assigns the name of a function to the onreadystatechange property:
Function MyFunc() 'Code goes here End Function Set xmlDoc.onreadystatechange = getref("MyFunc")
Applies To
XMLDOMDocument, XMLHTTPRequest