August 1999
Intermediate to advanced
1488 pages
72h 53m
English
layer.src
The src property of the Layer object represents the source URL of a particular layer.
Listing 7.354 shows how the src property is used. When the button is clicked, the src property is displayed.
<html> <head> <title> Using the src property 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 LEFT=70 VISIBILITY="show"> <center>Layer 2</center> </layer> <form name="form1"> <input type="button" value="Get Layer 1 src" onClick=alert(document.layer1.src)> ... |
Read now
Unlock full access