Home | History | Annotate | Download | only in chrome_frame
      1 <html>
      2 <!-- TODO(slightlyoff): Move to tests directory? -->
      3 <head>
      4 <title>Script test</title>
      5 <script>
      6 function OnLoad() {
      7   var host = window.externalHost;
      8   host.onmessage = OnHostMessage;
      9   host.ForwardMessageToExternalHost("Hello from ChromeFrame");
     10 }
     11 
     12 function OnHostMessage(text) {
     13   window.alert("In ChromeFrame: \r\n Message from host: " + text);
     14 }
     15 </script>
     16 </head>
     17 <body onload="OnLoad();">
     18 Test script
     19 </body>
     20 </html> 
     21