2 <!-- TODO(slightlyoff): Move to tests directory? -->
4 <TITLE> Chrome Frame Test
</TITLE>
5 <SCRIPT type=
"text/javascript">
6 function GetChromeFrame() {
7 var chromeFrame = window.document.ChromeFrame
11 function OnChromeFrameMessage(text) {
12 window.alert(
"In host: \r\nMessage from ChromeFrame: " + text);
14 var chromeFrame = GetChromeFrame();
15 chromeFrame.PostMessageToFrame(
"Hello from host");
19 function OnNavigate() {
20 var url = document.getElementById('inputurl');
21 var chromeFrame = GetChromeFrame();
22 chromeFrame.src = url.value;
26 var chromeFrame = GetChromeFrame();
27 chromeFrame.onmessage = OnChromeFrameMessage;
32 <BODY onload=
"onLoad();">
33 Chrome Frame Test activex
35 <input id=
"inputurl" type=
"text" name=
"URL">
36 <input type=
"submit" value=
"Navigate" onClick=
"OnNavigate();">
38 <OBJECT ID=
"ChromeFrame" WIDTH=
500 HEIGHT=
500 CODEBASE=
"http://www.google.com"
39 CLASSID=
"CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">
40 <PARAM NAME=
"src" VALUE=
"http://www.google.com">
41 <embed ID=
"ChromeFramePlugin" WIDTH=
500 HEIGHT=
500 NAME=
"ChromeFrame"
42 SRC=
"http://www.google.com" TYPE=
"application/chromeframe">