Layer (HTML tag)
From Wikipedia, the free encyclopedia
Layers were the core of a method of dynamic HTML programming specific to Netscape 4. Each layer was treated a separate document object in JavaScript. The content could be either included in the same file within the non-standard <layer>
tag (or any other tag with the positioning set to "absolute" via CSS, loaded from a separate file with <layer src="URL HERE">
or <div src="URL HERE">
, or generated via JavaScript with the new Layer()
, the content would then be filled with layer.document.write()
.
In modern browsers, this functionality is provided by using an absolutely-positioned div, or, for loading the content from an external file, an IFrame.
[edit] References
- Netscape: Dynamic HTML in Netscape Communicator (On the Internet Archive)
- Eric Krock, "Transitioning from Proprietary DOMs and Markup to W3C Standards: Enhancing Pages That Use LAYER, document.layers[], and document.all to Support Standards"