summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/data/postmessage_basic_frame.html
blob: 76f8cb326f7cd8e1cef8be6a4d80eaa4727e1423 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!-- saved from url=(0014)about:internet -->
<html>
<!-- This page is meant to load inside ChromeFrame -->
  <head>
    <script type="text/javascript" src="chrome_frame_tester_helpers.js">
    </script>
    <script type="text/javascript">
      function OnLoad() {
        externalHost.onmessage = OnHostMessage;
      }

      function OnHostMessage(evt) {
        appendStatus('Host message: ' + evt.data);
        externalHost.postMessage("Hello from ChromeFrame");
      }
    </script>
  </head>

  <body onload="OnLoad();">
    <div id="statusPanel" style="border: 1px solid red; width: 100%">
      Test running....
    </div>

    <p>ChromeFrame PostMessage Test
    <br>Test for PostMessage from the host browser to ChromeFrame and back</p>
  </body>
</html>