Use document.write to output the array content : Array Loop : Array JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Array » Array Loop »

 

Use document.write to output the array content

















<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
<!--
var myarray = new Array();
for (i = 0; i < 10; i++)
{
    myarray[i= i;
}
document.write(myarray);
//  -->
</script>
</head>
<body>

</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Array
» Array Loop