blob: d80642f7c5a32385172ba29310da46ee6199bcb3 (
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
28
29
|
<html>
<!-- TODO(slightlyoff): Move to tests directory? -->
<head>
<title>Script test</title>
<script>
function msg(txt) {
window.document.getElementById("my_text").innerText = txt;
}
function OnLoad() {
var host = window.externalHost;
host.ForwardMessageToExternalHost("OnChromeFrameMessage",
"Hello from ChromeFrame");
}
function OnHostMessage(text) {
msg("In ChromeFrame: \r\n Message from host: " + text);
}
</script>
</head>
<body onload="OnLoad();">
Here's an edit field: <input type="text"><br>
Here's another: <input type="text"><br>
<p>
Message:<br>
<pre><div id="my_text"></div></pre>
</p>
</body>
</html>
|