January 2001
Beginner
312 pages
6h 4m
English
Finally, let's look at a quick and simple way to list the values of all the elements in an array. This is done by simply using the name of the array. Therefore, to return all the elements of days_of_week and place them in an alert box, you can use the following (see Figure 5.6 for output):

<html> <head> <title>A Simple Page</title> <script language="JavaScript"> <!-- Cloaking device on! var days_of_week = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday", ...Read now
Unlock full access