Hi all,

Just wondering if anybody knows what the workaround is for the push()
function for arrays in MSIE.

Code below works in Netscape 4.7 but not in MSIE 5.0.

===========================

<html>
<head>
<title>Array Test for MSIE</title>

<script language="JavaScript">
var ieArray = new Array;

ieArray[0] = "arrayItem1";
ieArray[1] = "arrayItem2";
ieArray[2] = "arrayItem3";
ieArray[3] = "arrayItem4";

ieArray.push("arrayItem5");

for (i=0; i<ieArray.length; i++) {
        document.write(ieArray[i] + "<br>");
}

</script>


</head>

<body>
</body>
</html>

===========================

Thanks,
Chris


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-help

Reply via email to