| <!DOCTYPE html> |
| <body style="background: red;"> |
| <script> |
| window.parent.postMessage("child-three-loaded", {targetOrigin: "*", includeUserActivation: true}); |
| window.addEventListener("click", event => { |
| window.parent.postMessage("child-three-clicked", {targetOrigin: "*", includeUserActivation: true}); |
| var win = window.open('404.html'); |
| win.close(); |
| }); |
| |
| window.addEventListener("message", event => { |
| if (event.data == "report") |
| window.parent.postMessage("child-three-report", {targetOrigin: "*", includeUserActivation: true}); |
| if (event.data == "report-no-activation") |
| window.parent.postMessage("child-three-report-no-activation", {targetOrigin: "*", includeUserActivation: false}); |
| }); |
| |
| </script> |
| </body> |