Debian Codegraph @

testing/web-platform/mozilla/tests/focus/support/focus-before-iframe-loaded-same-site-inner.html

raw
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>focus() before iframe loaded same site</title>
6 </head>
7 <body>
8 <script>
9 window.onload = function() {
10 parent.postMessage("onload", "*");
11 }
12 document.body.onfocus = function() {
13 parent.postMessage("onfocus", "*");
14 }
15 </script>
16 </body>
17 </html>