The following cgi generated html page has the following Javascript in
the Body section:-
<script language="JavaS cript" type="text/javascript">
<!-- Begin
function eHistorical()
{
document.F1.act ion="http://www.somedomain/historicalitems .htm";
F1.submit();
}
//-->
</script>
Further down the page we have the following Form :-
<form name="F1">
<p align="right">
<input type = "button" name="B2" value = "Historical Items" onclick
="eHistorical() ">
</p>
</form>
The page loads OK but when button B2 it clicked the following error is
reported by Firefox :-
"F1 is not defined"
Any thoughts - it works fine in IE.
the Body section:-
<script language="JavaS cript" type="text/javascript">
<!-- Begin
function eHistorical()
{
document.F1.act ion="http://www.somedomain/historicalitems .htm";
F1.submit();
}
//-->
</script>
Further down the page we have the following Form :-
<form name="F1">
<p align="right">
<input type = "button" name="B2" value = "Historical Items" onclick
="eHistorical() ">
</p>
</form>
The page loads OK but when button B2 it clicked the following error is
reported by Firefox :-
"F1 is not defined"
Any thoughts - it works fine in IE.
Comment