You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.


TOC PREV NEXT INDEX

domref



src


The src property provides a url to load as content into the current frame.

Syntax

iFrameElement.src = sURL
 
sURL= iFrameElement.src
 

Parameters

sURL is a string containing a URL.

Example

i = document.getElementById("content-frame");
 
i.src = "www.netscape.com";
 

Notes

None.

Specification

DOM Level 2 -- HTMLIFrameElement


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX