Layer.onLoad

JavaScript 1.2+ Nav4+ Syntax

onLoad="command"

Description

The onLoad property of the Layer object is an event handler that notifies you when the layer's contents are being loaded.

Example

Listing 7.342 shows how the onLoad event handler is used.

Listing 7.342 Example of the onLoad Event Handler
<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 ...

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.