John Rickman Iyonix wrote
> http://rickman.orpheusweb.co.uk/testing/test5.html
> I have now traced the problem to an error in my code. I need to fix
> the problem and try again.
My javascript is now working. the problem was that the new interpreter
does not like html comments between the <script> and </script> tags.
<!DOCTYPE HTML>
<html><head> <title>Bakehouse-Cyber</title></head><body>
<script>
<!-- here is some javascript -->
document.write("hello world");
</script>
</body> </html>
As far as I know javascript should ignore html comments and the
javascript validator does not flag them as errors
http://www.javascriptlint.com/online_lint.php
John
--
John Rickman - http://rickman.orpheusweb.co.uk/lynx
No comments:
Post a Comment