Hey there!
I'm embarking on a sort of summer crash course on JS (and web design). I'm confused on html comment tags IN JS. According to W3 there are some browsers that don't/can't read JS; these browsers the code is put in html comment tags.
example -
<script type="text/javascript">
document.write("<h>TEXT</h>");
</script>
SUPPOSE I take account for some browser that can't read this properly and make the following change:
<script type="text/javascript">
<!--
document.write("<h>TEXT</h>");
//-->
</script>
MY question: since I don't control what browser people use - do the comment tags (in this context) mean "always hide the stuff inside" or does it mean "if browser can't read then hide, otherwise run/execute." Hope that makes sense...
Thanks all in advance -
AG