This html page works fine in IE but in FireFox it says func1 is not defined. In FireFox you can open the JavaScript console under the tools menu to see JavaScript errors.
---------------------------------------------------
<HTML> <HEAD> </HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript" >
function func1()
{
document.write("func <br>");
}
function Main()
{
document.write("Testing<br>");
func1();
document.write("--END--");
}
</SCRIPT>
<form name="Form1"">
<input type="button" value="Go!" onClick="Main()">
</form>
</BODY> </HTML>
-Chris (Consultant / Software Engineer)
---------------------------------------------------
<HTML> <HEAD> </HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript" >
function func1()
{
document.write("func <br>");
}
function Main()
{
document.write("Testing<br>");
func1();
document.write("--END--");
}
</SCRIPT>
<form name="Form1"">
<input type="button" value="Go!" onClick="Main()">
</form>
</BODY> </HTML>
-Chris (Consultant / Software Engineer)