I'm looking to save an array value in a separate JavaScript file and then use an internal script to create a loop that displays the values of the array stored in the external file. Here's my JavaScript file:
var Arr = new Array("one", "two", "three")
This is my internal script:
<script src="test.js" datatype "text/javascript"></script>
<script type="text/javascript">
for (x in Arr)
{
document.write("<br />"+ Arr[x]);
}
</script>