Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do non-JS browsers see code of ext script files?

Status
Not open for further replies.

ergot

Programmer
Aug 23, 2003
5
AU
Now I know that with internal code, you can comment it and thus render it invisible to non-js browsers eg:
Code:
<script type=&quot;text/javascript&quot; language=&quot;javascript&quot;>
<!-- Hello world! -->
</script>
<noscript>
Sorry folks. You need Javascript.
</noscript>
But, if I use the following code:
Code:
<script type=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;external.js&quot;>
</script>
<noscript>
Sorry folks. You need Javascript.
</noscript>
will non-js browsers show the unrecognised code in external.js? Or should I comment the entire code of the external file?
 
i don't think your code will be displayed as text, but i guess it's not a bad idea to wrap the external file in a comment.


=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top