Goal: We want browsers not supporting Javascript to ignore the script statemantes.
1. Javascript in HTML
<script type="text/javascript"> <!-- ... //--> </script>
2. Javascript in XHTML
<script type="text/javascript"> <!--//--><![CDATA[//><!-- ... //--><!]]> </script>
3. Works everywhere!
<script src="foo.js" type="text/javascript"></script>
No comments:
Post a Comment