Have you ever noticed the <!--
and -->
characters being used around JavaScript code like this:
<script type="text/javascript">
<!--
function validateForm()
{
if(document.pressed == 'Submit')
{
document.myform.action ="submit.html";
}
else
if(document.pressed == 'Cancel')
{
document.myform.action ="cancel.html";
}
}
-->
</script>
We all know that these characters indicate comments in HTML, but what about in JavaScript?