Name

src — NN 4 IE n/a DOM n/a

Synopsis

Read/Write

URL of the external content file loaded into the current element. To change the content, assign a new URL to the property.

Assigning a new URL to this property does not work with inline layers (ILAYER elements) in Navigator 4. Instead the current source document is removed, and other page elements can be obscured. Avoid setting this property for inline layers until this problem is fixed. The same goes for the load( ) method.

Example

document.myIlayer.src = "swap2.html"

Value

Complete or relative URL as a string.

Default

None.

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.