I have the following code to detect to see if CF BHO is enabled, but unfortunately it didn't work out, it alway returns "automation server failed to create obj"

  var activexGoogleFrameBho = new ActiveXObject('ChromeFrame.Bho');
  if (activexGoogleFrameBho) {
    ...
  }

My user agent and page header are as following:

  mozilla/4.0(compatible; msie 8.0; windows nt 6.1; wow64; trident/4.0;
  chromeframe/32.0.1700.107; slcc2; .net clr 2.0.50727; .net4.0c; .net4.0e)

  <meta http-equiv='X-UA-Compatible' content='IE=Edge,chrome=IE8'/>

any ideas?

Thanks,

有帮助吗?

解决方案

I'm not sure if you can detect the helper object itself though to see if the current page is loaded in chromeframe you can check if window.externalHost exists.

http://www.chromium.org/developers/how-tos/chrome-frame-getting-started/understanding-chrome-frame-user-agent#TOC-From-the-script-on-the-web-page

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top