Always use the HTML tags to surround your javascript code.
Notice the capital "A" in Array();
<script type="text/javascript"> var myArray = new Array();
myArray[0] = "123"; myArray[1] = "456"; myArray[2] = "abc";
alert(myArray); </script>
This will output 123,456,abc
By PHPin24 @ 2009-07-20 20:40:37
|