| Index: chrome_frame/test/data/postmessage_basic_frame.html
|
| ===================================================================
|
| --- chrome_frame/test/data/postmessage_basic_frame.html (revision 0)
|
| +++ chrome_frame/test/data/postmessage_basic_frame.html (revision 0)
|
| @@ -0,0 +1,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>
|
|
|