Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q515 How can I force a layer to stay at the bottom of the browser window (Netscape Navigator 4), whenever this window is maximized, or resized?

You are here: irt.org | FAQ | DHTML | Q515 [ previous next ]

You'll possibly need to invoke the onResize event handler to first reload the page:

<body onResize="location.reload()">

To position a layer in a certain position on the screen you'll need to use code similar to:

<html>
<head>
<script language="JavaScript"><!--
function pageOffset() {
    document.layers['layerName'].pageX = window.innerWidth - 150;
    document.layers['layerName'].pageY = window.innerHeight - 50;
}
//--></script>
</head>

<body onLoad="pageOffset()" onResize="location.reload()">

<layer name="layerName" left="10" top="10">Some content in here</layer>

</body>
</html>

Feedback on 'Q515 How can I force a layer to stay at the bottom of the browser window (Netscape Navigator 4), whenever this window is maximized, or resized?'

©2018 Martin Webb