• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2
3<head><title>Post message subframe tests</title>
4<script>
5  function postToOpenerFrame(msg, origin) {
6    window.opener.frames[0][1].postMessage(msg, origin);
7    return true;
8  }
9
10  window.addEventListener("message", messageReceived, false);
11
12  function messageReceived(event) {
13    // Change the title to generate a notification.
14    document.title = event.data;
15  }
16</script>
17</head>
18
19<iframe id="frame1" src="frame_tree/1-1.html"></iframe>
20
21</html>
22