<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Check that window.opener is not set</title> | |
</head> | |
<body> | |
<div id="console"></div> | |
<script> | |
var log = document.querySelector("#console"); | |
var result; | |
if (window.opener != null) | |
result = "FAIL: opener set"; | |
else | |
result = "PASS"; | |
log.innerText = result; | |
document.title = result; | |
</script> | |
</body> | |
</html> |