Array with a numeric parameter and assign data to it
<html> <body> <script type="text/javascript"> var nameArray = new Array(6) nameArray[0] = "1 item" nameArray[1] = "2 item" nameArray[2] = "3 item" nameArray[3] = "4 item" nameArray[4] = "5 item" nameArray[5] = "6 item" for (i=0; i<6; i++){ document.write(nameArray[i] + "<br>") } </script> </body> </html>