August 1999
Intermediate to advanced
1488 pages
72h 53m
English
layer.load(src, width)
The load() method of the Layer object is used to load a new document in the layer. As described in the syntactical definition, this method takes the URL of the source of the layer and the width.
Listing 7.333 shows how to use the load() method. When the button is clicked, the onClick event handler loads the tmp.html file.
<html> <head> <title> Using the load method of the Layer object</title> </head> <body> <layer id="layer1" width=200 height=200 color= bgcolor="yellow" TOP=170 LEFT=200 VISIBILITY="show"> <center>Layer 1</center> </layer> <layer id="layer2" width=150 height=160 color= bgcolor="green" TOP=100 ... |
Read now
Unlock full access