summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/execution-timing/pages/helloworld-postMessage.html
blob: 2ed8731ceb56e198331dd5ccc1f9d84cca776a52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html><head>
  <title> TC component </title>
</head>
<body>

  <p>This page should appear in popup or frame</p>

  <script type="text/javascript">
  var target = opener || top;
  var id = location.search?' '+location.search.substring(1) : '';
  target.log('frame/popup script'+id);
  window.onload=function(){
    target.log('load event inside frame/popup script'+id);
    target.postMessage('msg evt frame/popup script'+id, '*');
  }
  </script>

</body></html>