Name

SRC — NN n/a IE 3 HTML 4

Synopsis

SRC=”URL"

Optional

Defines the URL of the content to be loaded into the IFRAME element. The URL can be an absolute URL or one relative to the URL of the document containing the frameset specifications. You may also use the javascript: pseudo-URL to have the returned value of a script appear in the frame. If you omit the SRC attribute, the frame opens empty.

Example

<IFRAME SRC="navbar.html"></IFRAME>

Value

A complete or relative URL or a javascript: pseudo-URL.

Default

None.

Object Model Reference

IE

[window.]document.frameName.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.