Layer.pageY

JavaScript 1.2+ Nav4+ Syntax

							layer.pageY

Description

The pageY property of the Layer object represents the y-coordinate position of the layer relative to the top-level document.

Example

Listing 7.346 shows how to manipulate the pageY property. When the button is clicked, the size function is called, which adds 20 pixels to pageY attribute of layer1.

Listing 7.346 Example of the pageY Property
<html>
<head>
<title> Using the pageY property of the Layer object</title>
</head>
<body>

<script language="JavaScript">
<!-- Hide

// function changes the value of the PageY attribute
function size(){
     document.layer1.pageY = document.layer1.pageY +20;
}
// End Hide --->
</script>
							 <layer id="layer1" width=200 height=200 color= bgcolor="yellow" ...

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.