Specifies the event handler to be invoked when the readyState property changes.
oXMLDOMDocument.onreadystatechange = funcMyEventHandler
HRESULT put_onreadystatechange( VARIANT readystatechangeSink);
Returns S_OK if successful, or an error code otherwise.
You can call the DOMDocument object's QueryInterface method to obtain the IConnectionPointContainer interface, which is used in event management. The DISPID for this event is DISPID_XMLDOMEVENT_ONREADYSTATECHANGE.
This member is an extension of the W3C DOM.
See the IXMLDOMDocument::onreadystatechange Event example to learn how to do this with connection points.