Getting your JavaScript using Page to Verify as XHTML Strict
To be your javascript using page to verify as strict, if it is not currently verifying as strict do one of the following:
Move your javascript code to another file (likely with a .js file extension)
get rid of the javascript code you just moved to the file
add a src attribute to your script element, whose attribute value is the name of the file containing your code (e.g., <script src="mycode.js"></script>)
Or you can try:
add a new blank line to the very beginning of your script element
type in this text: /* <![CDATA[ */
add a new blank line to the very end of your script element
type in this text: /* ]]> */