jQuery detect Chrome Frame
<p>I have the following code that I'm using to detect what versions of a browser a user is using:</p>

<p>var browser = $.browser;</p>

<pre><code>    if (browser.msie) {
        window.location.replace('/ChromeFrame');
    }
    else if (browser.mozilla &amp;&amp; browser.version &lt; 4) {
        window.location.replace('/Upgrade');
    }
    else if (browser.opera &amp;&amp; browser.version &lt; 11.5) {
        window.location.replace('/Upgrade');
    }
</code></pre>

<p>The idea is that if they are using IE then they must install Chrome Frame and if they are using less than Firefox 4 or Opera 11.5 then they must upgrade their browser (not not sure if the way I am doing that is correct?)</p>

<p>But in addition to checking if they are using IE I need to detect if they have Chrome Frame so I can let IE users in.</p>

<p>Can anyone help? Thanks</p>

<p>I've thought about doing something like: <code>(browser.msie &amp;&amp; !navigator.userAgent.contains('chromeframe'))</code></p>
