Name

SRC — NN 4 IE n/a HTML n/a

Synopsis

SRC=”URL"

Optional

To load the content of an external HTML file into a LAYER element, assign the URL of that file to the SRC attribute. Any HTML content between the LAYER start and end tags is rendered on the page after the content is loaded from the SRC URL. If you omit the SRC attribute, only content between the tags is rendered. Scripts can change the corresponding object property (src) after the document has loaded to dynamically change content within the LAYER element (without reloading the main document).

Example

<LAYER BGCOLOR="yellow" SRC="instrux.html" WIDTH=200 HEIGHT=300</LAYER>

Value

A complete or relative URL.

Default

None.

Object Model Reference

NN

[window.]document.layerName.src

Get Dynamic HTML: The Definitive Reference 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.