When we write client-side validation scripts, or dynamic content in JavaScript or VBScript, we have to use special characters to make sure that the code is not interpreted as HTML.
XHTML has a specific declaration for such instances:
<script language="Javascript">
<![CDATA[
function clickme() {
alert("Hello")
}
]]>
</script>