Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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?

irt.org | Knowledge Base | DHTML | Q515 [ previous next ]

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'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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.