0

My javascript does not work in any browser except windows IE... WHY

Please just give me an example of some javascript that works in mozilla

Here is example of my source...

<script>
 var x = 400;
 alert(x);
 alert("This works in IE, but not Mozilla, why!!!!!!!!??????????");
</script>
3
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by Brent.tc
0

Sorry... I did not realise that this site had a web development site... Don't ask how, but I didn't.
I tried deleteing this, but I don't know how or if I can...

0

on each post there is option "flag bad post", in message just write something like "please move to different forum" best give it name of forum.
So now you can do it

0

try putting :

<script type="text/javascript">
(what you had before)
</script>

also make sure; the script is inside a <body> or <head> element inside an <html> element. IE can be a bit lax when it comes to what is and isn't acceptable HTML; most browsers are less forgiving.

0

I figured that was the problem, but I'm just a lazy programmer... J.K., but I had no idea that those were required...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.