Closed Bug 292330 Opened 20 years ago Closed 20 years ago

javascript not running as it should

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 114461

People

(Reporter: iinfi1, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

<html>
<head>
<script language="javascript">
<!--
function display()
{
var i, n=0;
A=new Array(5);

for(i=0;i<5;i++)

{

A[i]=i;
document.write(A[i]);

}


}
-->
</script>
</head>
<body onLoad="display()">
</body>
</html> 


the above simple javascript code gives the result as
0
in mozilla firefox......

and
01234
in IE6 (after allowing blocked content)


Reproducible: Always

*** This bug has been marked as a duplicate of 114461 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.