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

Q456 How can you redirect the browser to one page for Internet Explorer and another for Netscape Navigator ?

You are here: irt.org | FAQ | JavaScript | Redirect | Q456 [ previous next ]

Try:

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

©2013 Martin Webb

ArticlesFAQsGamesFeedback

FOLDOCRFCsInstant JavaScriptSoftwareBooksJavaScript Programmer's ReferenceAboutTop