TOC PREV NEXT INDEX

domref



src


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

Syntax

frameElement.src = sURL
 

Parameters

sURL is a string containing a URL.

Example

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

Notes

None.

Specification

DOM Level 2 -- HTMLFrameElement

IFRAME


The IFRAME element is very much like a FRAME. The difference is that an IFRAME can be inserted in-line, hence the name IFRAME. Regular FRAME elements take up as much space as they can (given the dimensions of the FRAMESET, the presence of other frames, and the confines of the document itself). But iframes can be aligned in their containing elements, given a specific height and width, etc.

Properties

Specifies how the IFRAME is to be aligned in the containing element.

The contentDocument property returns the document the frame contains, if any.

The contentWindow property returns the window parent of the iframe.

frameBorder gets/sets the border around the current IFRAME.
The longDesc property points to a long description of the current iframe.
Gets/sets the height of the frame's margin in pixels.
Gets/sets the width of the frame's margin in pixels.
The name of the IFRAME element.

The scrolling property specifies whether the current frame should provide scrollbars or not.

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


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