2 Copyright 2011 Google Inc. All rights reserved.
6 <script src='../out/CFInstall.min.js'> </script>
8 // This is only required if you are hosting your own copy of the
9 // implementation script and have not set the implementation path during
10 // compilation. (See build.sh -l 'PATH').
11 CFInstall.setImplementationUrl('../out/cf-xd-install-impl.js');
13 // The following are only required when running this example from a local
14 // file. The default behaviour is to use the same scheme as this page,
15 // which is file://, and thus wrong.
16 CFInstall.setDownloadPageUrl('http://google.com/chromeframe/eula.html');
17 CFInstall.setSameDomainResourceUri('http://example.com/robots.txt');
21 <b>Chrome Frame Installed?:</b>
22 <span class="labeled" id="ChromeInstalled"></span><br />
24 Note that Chrome Frame will never render local pages (i.e., from 'file://'
25 URLs). The above message will, however, tell you whether Chrome Frame is
29 document.getElementById('ChromeInstalled').innerHTML =
30 CFInstall.isAvailable() ? "Yes" : "No";
33 <a href="javascript:CFInstall.require()">
34 This site requires Google Chrome Frame. Click here to install it now.