Javascript question

Miscellaneous Forums/General Discussion/Javascript question

still encouraged from your quick answers to my css problem, here's yet another problem:

Why doesn't this work in FireFox?

<script>
document.write("hello world");
</script>

I also tried the "full" syntax:

<script language="javascript">
<!--
document.write("hello world");
//-->
</script>

No success. It works in msie! Script is ON, btw. No error message, nothing.

EDIT uh sorry, had script console hidden in FireFox. Now that I read the error messages, I'll probably gonna fix this soonish.

Ok, my mistake, for debugging purposes I tried <script language="jscript"> and then forgot about it. In fact, with "javascript" it works (funny in msie works both). Sorry for wasting your time.

remove <!-- and //-->

No need Turtle, those are in place to make the javascript not execute on browsers that don't support it, every common browser ignores those tags within the <script> html.