XML DOM » Document » async

Compability: Internet Explorer

Syntax:
document.async = [true | false]

This property determines whether asynchronous downloading of an XML file is permitted. The default is True, meaning that the load method returns control to the caller before the download is complete. false]

(If it is set to true you can use the readyState property to determine when downloading is complete.)

Examples

Code:
var xml_doc = new ActiveXObject("Microsoft.XMLDOM");
xml_doc.async = false;
xml_doc.load("recordings.xml");
Explanation:

This example demonstrates the setting of this property to false before loading a document so that the document is fully loaded before the caller regains control.

Language(s): JavaScript