Layer.src
JavaScript 1.2+ Nav4+ Syntax
layer.src
Description
The src property of the Layer object represents the source URL of a particular layer.
Example
Listing 7.354 shows how the src property is used. When the button is clicked, the src property is displayed.
Listing 7.354 Example of the src Property
<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)> ... |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.