blob: 6059b7df43f98f79ad3d1538b4d0ed141c268ba4 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head><title>XMLHttpRequest</title>
</head>
<body>
<script type="text/javascript">
try
{
xhrRequest = new XMLHttpRequest();
xhrRequest.onreadystatechange = function () {
if (xhrRequest.readyState == 4 && xhrRequest.status == 200) {
//xhr successful
parent.window.postMessage("access to window.XMLHttpRequest", "*");
}
}
xhrRequest.open("GET", "standalone-pass.htm", true);
xhrRequest.send();
}catch(e){}
parent.window.postMessage("no access to window.XMLHttpRequest", "*");
</script>
</body>
</html>