blob: 952b46b5dc4cd2b8daaad24c40da620a11fd0071 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>Am I sandboxed?</title>
<meta charset="utf-8"/>
</head>
<body style="background-color: pink">
<p style="color: black;">I'm NOT allowed to execute JavaScript.</p>
<script>
document.querySelector('p').textContent = "I can execute JavaScript.";
document.body.style.backgroundColor = "lightgreen";
</script>
<p><a href="./am-i-sandboxed.html" target="_blank">Open this page as a popup</a></p>
<p><button onclick="alert('I can open modal dialog!')">Open an alert dialog</button></p>
<p><button onclick="top.location='./framebusting-success.html'">Navigate top frame</button></p>
<p><a href="./framebusting-without-user-activation.html" target="_blank">Open a popup to test top navigation without user activation</a></p>
</body>
</html>