<html>
<head>
<script>
function runTest()
{
document.getElementById("testResult").innerHTML = (function() {
try {
var cookie = document.cookie;
}
catch (err) {
if (err.name.indexOf("SecurityError") != -1)
return "PASS";
}
return "FAIL: SecurityError not raised";
})();
}
</script>
</head>
<body onload="runTest();">
<p id="testResult">FAIL: Script didn't run</p>
</body>
</html>