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>

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>

This javascript works fine in my firefox 2.0.0.2 browser and works just the same in IE7. I would have to say its probably a setting you have in mozilla thats probably stopping the script from functioning correctly.

PS: what are you trying to do? Just get JS to work in mozilla? or...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.