The <layer> tag

Importing HTML data into Navigator v4.

The layer tag has been left behind in Netscape development - it may not be supported at all by future versions.

<layer id="UNIQUE_NAME" src="URL" bgcolor= "COLOUR" width="500" height="450" top="10" left="270" visibility="show"></layer>

The height and width elements must be fixed pixels, not percentages or the external page may not be visible. The height and width elements cannot be altered by Javascript in real time. This has important implications if visitors are browsing at a high resolution. The layer tag definition does not include scrollbars. See the page source code for a javascript function that loads a separate window for all documents larger than the layer size.

n.b. this is NOT the same as the <object> tag used by Internet Explorer.

It is possible to have <object> and <layer> tags in the same document because each browser currently ignores the alternative tag. However, this situation will not necessarily remain when newer browsers are launched. This site uses features of DHTML implemented in IE4 which are not implemented in Navigator 4.5 and so the files are separated anyway. If you choose to use both tags together, consider using Javascript to only insert the correct tag depending on the browser ID using the document.writeln("<layer etc command.

This is part of Copyright © 1998-2004 Neil Williams
See the file about.html for copying conditions.