Determining Browser Type and Version for Major Modern Browsers
<p>I only support major modern browsers.  Primarily b.c. I currently have limited resources and I have to support what I can and hit the browsers with the most users.  My app only works with JavaScript turned on and a major modern browser.  I have a JavaScript test in place and now I need to test for browser type and version for these browsers.</p>

<ul>
<li>IE</li>
<li>Safari</li>
<li>Chrome</li>
<li>Firefox</li>
</ul>

<p>Google search pulls up:</p>

<p><a href="http://www.w3schools.com/js/js_browser.asp" rel="nofollow">W3</a> and <a href="http://www.quirksmode.org/js/detect.html" rel="nofollow">Quirksmode</a></p>

<p>Quriksmode looks to cover too many bases for my needs and W3 I've been told is not the best reference.</p>

<p>The simplest solution I found and what I'd like to use is:</p>

<pre><code>navigator.appName
</code></pre>

<p>to test for the type and</p>

<pre><code>navigator.appVersion
</code></pre>

<p>to test for the version.  Will this work for the limited cases I want to cover?</p>

<p>I don't want to use any libraries.</p>
