Determine which browser is being used to visit my site
<p>Can someone tell me how I can determine (using JavaScript etc.) what browser is being used to visit my site?</p>

<p>I want to redirect to a different page based on these scenarios:</p>

<ul>
<li>Wheater the user is browsing using Safari on the iPhone.</li>
<li>Using IE on a desktop</li>
<li>Using IE on a WP7 mobile device.</li>
</ul>

<p>Thanks.</p>
