XDomainRequest Property
Instantiates the XDomainRequest object for the window.
Syntax
[ oXDR = ] window.XDomainRequest [ = oXDR ]
Possible Values
oXDR Object that specifies the XDomainRequest object. oXDR Object that receives the XDomainRequest object. The property is read/write. The property has no default value.
Remarks
If the cross-domain request feature has been disabled in Windows Internet Explorer, the property value is set to null.
The XDomainRequest property was introduced in Internet Explorer 8.
Example
The following script demonstrates how to create and use the XDomainRequest object.
if (window.XDomainRequest) { var oReq = new XDomainRequest(); if (oReq) { oReq.open("GET", "http://example.com/test.xml"); oReq.send(); alert(oReq.statusText); } }
Standards Information
There is no public standard that applies to this property.
Applies To
window