Including JavaScript in XHTML pages
The best way to include JavaScript in HTML pages is to use an external file, but if you need to use the inline method here is the syntax to use:
<script type="text/javascript">
/* <![CDATA[ */
// content of your Javascript goes here
/* ]]> */
</script>
Last updated: 28/11/2007