Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Toplevel data navigation</title>
</head>
<body>
test3: performing data: URI navigation through win.loc.href<br/>
<script>
// postMessage will not be sent if data: URI is blocked
window.location.href = "data:text/html,<body><script>" +
"window.opener.postMessage('test3','*');<\/script>toplevel data: URI " +
"navigations should be blocked</body>";
</script>
</body>
</html>