summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-different-site-inner.html
blob: bcf23627d2e6d9f92aba08aa552d75d5f06e43b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>focus() before iframe loaded different site</title>
</head>
<body>
<script>
    window.onload = function() {
        parent.postMessage("onload", "*");
    }
    document.body.onfocus = function() {
        parent.postMessage("onfocus", "*");
    }
</script>
</body>
</html>