summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/focus/support/activeelement-after-focusing-same-site-iframe-inner-contentwindow.html
blob: bc78e6e0538c4dd22a3563f1b56bc755d468e767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Inner document</title>
</head>
<body>
<h1>Inner</h1>
<script>
document.body.onfocus = function() {
    parent.postMessage("innerbodyfocus,", "*");
}
document.body.onblur = function() {
    parent.postMessage("innerbodyblur,", "*");
}
</script>
</body>
</html>