Use for loop to display elements in an array
<html> <head> <title>For Loop Example</title> </head> <body> <script type = "text/javascript" > var myArray = ["A","B","C"]; for (var count = 0; count < myArray.length; count++ ) { document.write(myArray[count]+"<BR>"); } </script> </body> </html>