Possible duplicate:
Are Chrome Frame conditional comments possible?
I have a bookmarklet that I want users to be able to install in all browsers. Just a simple link with some javascript behind it, which will be used as pintrest or evernote ... It works in all browsers (2 versions ago), except for IE when chromeframe works (we need a chrome frame for an older version of IE).
In chromeframe, you cannot drag a link to your favorites panel, but I can open a pop-up window in my own IE and display the link (which you can then install / drag to the toolbar).
I just donโt know how to determine if I am running inside a chromeframe instance (detecting IE without starting a chrome frame is very simple with CFInstall or recording it myself). userAgent I see that inside the Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11 Chromeframe Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11 , which, as far as I can tell, is useless. I also tried a few dozen combinations of <!--[if IE]> , and they all seem to fail.
The only solution I have now is to get the server to catch the initial userAgent and return it during rendering. I do not mind changing the server code, but it feels dirty, unable to perform verification only with the help of a client-side tester.
source share