At any rate... My script tags never kick out in the HTML validator, so there is something wrong with yours. Show 'em. [/QUOTE]
Whenever I validate a HTML page, the validation spots things inside the JavaScripting tag!!
Example :
[code=html] <script type="text/javascript"> for (i = 1; i <= 6; i++) { document.write("<h" + i + ">This is header " + i) document.write("</h" + i + ">") } </script> [/code]
It says that there are unclosed tags in the <h1> although, I have to do so in the script for the loop to work!
[code=html] <!-- Introduction Script --> <script type="text/javascript"> <!-- var Nickname = prompt("Welcome to my website! nn Please type in your Name or Nickname :","") if (Nickname != null || "") {document.write("<div class=Navigation_h>Welcome " + Nickname + " to my website! :)</div>")} //--> </script> [/code]
It says "</div> | Closed tag for an unopened element!!"
@Banana_AnandaJul 10.2007 — #If you are validating, and using on-page script, it seems like there [i]is[/i] a reason to use some form of script commenting.
@felgallJul 10.2007 — #All closing HTML tags that are inside of JavaScript should be coded as </ instead of </ so that they are recognised as being within the javaScript and are not the closing script tag.