Daybreak_0
11-15-2003, 09:22 PM
I am validating my xhtml, but the W3C validator is throwing up errors on any javascript I have for example -
<p><script language="JavaScript"><!--
document.write(emailTopress());
// --></script>. (President)</p><br>
<p><script language="JavaScript"><!--
document.write(emailTosec());
// --></script> (Secretary)</p>
the validation has problems with the <!-- and later // --> and the way they are used.
I do not understand why these are used, and in one lot of javascript I removed them. It did not make a difference, but I hate not knowing why someone would have put them there in the first place. Can anyone tell me what they are for and whether I should keep them in.
Thanks
Day
<p><script language="JavaScript"><!--
document.write(emailTopress());
// --></script>. (President)</p><br>
<p><script language="JavaScript"><!--
document.write(emailTosec());
// --></script> (Secretary)</p>
the validation has problems with the <!-- and later // --> and the way they are used.
I do not understand why these are used, and in one lot of javascript I removed them. It did not make a difference, but I hate not knowing why someone would have put them there in the first place. Can anyone tell me what they are for and whether I should keep them in.
Thanks
Day