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

Q662 How can I use different *.js files based on the browser being used?

You are here: irt.org | FAQ | JavaScript | Source | Q662 [ previous next ]

Try:

<SCRIPT LANGUAGE="JavaScript"><!--
if (navigator.appName == "Netscape")
    document.write('<script language="JavaScript" src="default_ns.js"><\/script>')
else
    document.write('<script language="JavaScript" src="default_ie.js"><\/script>')
//--></script>

Feedback on 'Q662 How can I use different *.js files based on the browser being used?'

©2018 Martin Webb