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
<html>
<body>
<div id="current_bid"></div>
<script language=javascript>
var int = self.setInterval("getBid()",1000)
function getBid()
{
//formula to get current bid value
var bid = bidValue;
document.getElementById("current_bid").innerHTML=bid
}
</script>
<button type="button" onclick="int=window.clearInterval(int)">
End Bid</button>
</body>
</html>
This is a simple example of how the window.clearInterval() function could be used.
In this example, the page updates the content of a div every 1000 milliseconds.
And the button stops the updating of the div by using the window.clearInterval() function