summaryrefslogtreecommitdiffstats
path: root/chrome_frame/frame.html
blob: d63d3aced16507c7a3ef055e1dc0ac92a0fbb21c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<html>
<!-- TODO(slightlyoff): Move to tests directory? -->
<head>
<title>Script test</title>
<script>
function OnLoad() {
  var host = window.externalHost;
  host.onmessage = OnHostMessage;
  host.ForwardMessageToExternalHost("Hello from ChromeFrame");
}

function OnHostMessage(text) {
  window.alert("In ChromeFrame: \r\n Message from host: " + text);
}
</script>
</head>
<body onload="OnLoad();">
Test script
</body>
</html>