In order to prevent this, you enclose the body of your scripts within an HTML comment, using the format shown in Example 18.1.
Browsers that do not understand the <SCRIPT> and </SCRIPT> tags simply ignore them. Thus, lines 1 and 7 in Example 18.1 have no effect on these browsers. They'll ignore lines 2 through 6 as well, because the first four characters on line 2 begin an HTML comment, and the last three characters on line 6 end that comment--everything between is ignored by the HTML parser.
<SCRIPT> <!-- hide script var pathname = location.path; var filename = path.substring(path.lastIndexOf("/")+1, path.length); location = "js_" + filename; // stop hiding --> </SCRIPT>
<SCRIPT> <!-- hide script var path = location.path; var filename = "js/" + path.substring(path.lastIndexOf("/")+1, path.length); if (location.replace) location.replace(filename) else location = filename; // stop hiding --> </SCRIPT>