August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.layers
document.layers[index]
The layers property is an array that contains all the objects that appear within the HTML document from using the <layer> tag. The layers property has one property of its own, called length, which contains the number of items in the array. The index number ranges from zero to the length.
The code in Listing 7.141 creates two layers and then displays their names at the bottom of the page using the layers[] array.
<html> <layer name="Layer1" PAGEX=50 PAGEY=50 width=100 height=100 bgcolor="blue">Layer 1</layer> <layer name="Layer2" PAGEX=150 PAGEY=150 width=100 height=100 ... |
Read now
Unlock full access