summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/data/CFInstance_singleton_frame.html
blob: 1ab03025bac29f5b5d08b8248e7f59acc5ce7095 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<html>
  <head>
    <title>talk to me...</title>
    <script type="text/javascript" src="CFInstance.js"></script>
    <script type="text/javascript">
      CFInstance.listen("load", function() {
        document.body.innerHTML = "sending 'foo'";
        CFInstance.postMessage("foo");
        document.body.innerHTML = "...waiting...";
      });
      CFInstance.listen("message", function(evt) {
        document.body.innerHTML = "sending 'baz'";
        CFInstance.postMessage("baz");
      });
    </script>
  </head>
  <body>
    <h1>sends a message to the parent</h1>
  </body>
</html>