I have made a page, and got it to work in IE, but when i tried to open it in firefox it didnt work. I managed to find out the problem, it goes something like this:
[CODE=javascript]
<body onLoad="a();b() ;c()">
</body>
<script language="javas cript">
function a(){
alert("a")
}
function b(){
alert("b")
}
function c(){
alert("c")
}
</script>
[/CODE]
if this was my code, i would only get one alert saying "a". I tried putting one function in the onLoad embed, and the other functions in it, i.e.
[CODE=javascript]<body onLoad="d()">
</body>
<script language="javas cript">
function d(){
a()
b()
c()
}
</script>[/CODE]
however, this did not work either and i still only got one alert.
any help with this problem would be appreciated.
[CODE=javascript]
<body onLoad="a();b() ;c()">
</body>
<script language="javas cript">
function a(){
alert("a")
}
function b(){
alert("b")
}
function c(){
alert("c")
}
</script>
[/CODE]
if this was my code, i would only get one alert saying "a". I tried putting one function in the onLoad embed, and the other functions in it, i.e.
[CODE=javascript]<body onLoad="d()">
</body>
<script language="javas cript">
function d(){
a()
b()
c()
}
</script>[/CODE]
however, this did not work either and i still only got one alert.
any help with this problem would be appreciated.
Comment