Previous Example-|-Next Example-|-Return to Chapter Listing
Example 9.9:
Assigning String Values to Arrays
[This example works with Netscape Navigator 3 and Internet Explorer 3.]
This time we created an array and assigned string values to the elements. These become properties of the elements, and can be referenced like a property (house.bedrooms, for instance).
This is the script we used in the HEAD:
And here's the script in the BODY:
Previous Example-|-Next Example-|-Return to Chapter Listing