summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/embedded-content/the-iframe-element/support/iframe_sandbox_023.htm
blob: a65db539bb4d02f282d56ba513c4db0759677b35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html>
<head><title>Access parent dom</title>
</head>
<body>
    <script type="text/javascript">
        if (window.parent.document)
        {
            parent.window.postMessage("window.parent.document", "*");
        }else{
            parent.window.postMessage("!window.parent.document", "*");
        }
    </script>
</body>
</html>