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

Q634 How do I get the *.js files to not display their code in Netscape?

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

Use JavaScript to output the HTML tags to request an external JavaScript *.js source file wen the browser is not Netscape:

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

©2018 Martin Webb