How can I detect the browser in JavaScript?
<p>I need to detect the browser with JavaScript.</p>

<p>I have an image gallery with different js files for FireFox, Chrome, and IE. How can I detect the browser display the corresponding file?</p>
