Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q835 How do I detect browsers and load different pages according to the browser (Netscape v Explorer)?

You are here: irt.org | FAQ | JavaScript | Misc | Q835 [ previous next ]

Don't forget that there are more browsers than just Netscape Navigator and Microsoft Internet Explorer:

<SCRIPT LANGUAGE="JavaScript"><!--
if (navigator.appName == 'Microsoft Internet Explorer')
    location.href = 'explorer.htm';
else if (navigator.appName == 'Netscape')
    location.href = 'netscape.htm';
else
    location.href = 'other.htm';
//--></SCRIPT>

©2018 Martin Webb