Which way is best? Both validate and both work. <script type="text/javascript"> <!-- <![CDATA[ function theFunction(){} //]]> --> </script> <script type="text/javascript"> <!--//--><![CDATA[//><!-- function theFunction(){} //--><!]]> </script> Kristof