snowtown
11-09-2002, 03:05 PM
In the head section of my .html document I have included the following:
<script type="text/javascript" src="test.js"></script>
In this file I have two functions:
function a(){
alert("a");
}
and
function b(){
alert("b");
}
When I call any of these functions in the body of the .html document it works fine, but if I change the names of the functions and call them again it doesn't work in Opera6.05 (works in IE6 and NS7), like if the only allowed function names were "a" and "b".
I call the functions like this:
<td><script type="text/javascript">functionName();</script></td>
Does anyone have any suggestions on why it doesn't work in Opera? The document is valid XHTML1.0 Transitional.
Thanks!
<script type="text/javascript" src="test.js"></script>
In this file I have two functions:
function a(){
alert("a");
}
and
function b(){
alert("b");
}
When I call any of these functions in the body of the .html document it works fine, but if I change the names of the functions and call them again it doesn't work in Opera6.05 (works in IE6 and NS7), like if the only allowed function names were "a" and "b".
I call the functions like this:
<td><script type="text/javascript">functionName();</script></td>
Does anyone have any suggestions on why it doesn't work in Opera? The document is valid XHTML1.0 Transitional.
Thanks!