August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onLoad="command"
The onLoad property of the Layer object is an event handler that notifies you when the layer's contents are being loaded.
Listing 7.342 shows how the onLoad event handler is used.
<html>
<head>
<title> Using the onLoad event handler of the Layer object</title>
</head>
<body>
<script language="JavaScript">
<!-- Hide
function showMsg(){
document.form1.text1.value = "Layer contents being loaded";
}
// End Hide --->
</script>
<layer id="layer1" width=200 height=200 color= bgcolor="yellow" TOP=170
LEFT=200 VISIBILITY="show"onLoad='showMsg()'>
<center>Layer 1</center>
</layer>
<layer id="layer2" width=150 height=160 ... |
Read now
Unlock full access