idratherbearobot
Programmer
Ok so I've got this dhtml/javascript issue, and basicly, what it boils down to is this. I have code resembling this:
<html>
<head>
<title>test file</title>
<script language="JavaScript">
<!--
var itemArray = new Array();
var item1 = "thing1";
itemArray.push(item1);
var item2 = "thing2";
itemArray.push(item2);
var item3 = "thing3";
itemArray.push(item3);
var item4 = "thing4";
itemArray.push(item4);
-->
</script>
</head>
<body>
<script language="JavaScript">
<!--
document.write(itemArray.length);
-->
</script>
</body>
</html>
On everyt browser I've tested this so far it works, the output is 4. But on Mac IE, it prints out 0. Anyone know why? Does JavaScript on a MAC version of IE not suuport the push() method?
thanks in advance
-adam
<html>
<head>
<title>test file</title>
<script language="JavaScript">
<!--
var itemArray = new Array();
var item1 = "thing1";
itemArray.push(item1);
var item2 = "thing2";
itemArray.push(item2);
var item3 = "thing3";
itemArray.push(item3);
var item4 = "thing4";
itemArray.push(item4);
-->
</script>
</head>
<body>
<script language="JavaScript">
<!--
document.write(itemArray.length);
-->
</script>
</body>
</html>
On everyt browser I've tested this so far it works, the output is 4. But on Mac IE, it prints out 0. Anyone know why? Does JavaScript on a MAC version of IE not suuport the push() method?
thanks in advance
-adam