You are here:  NetStrider » Tutorials » HTMLRef » Commands » IFRAME «

HTML Reference Guide

Author: Randy D. Ralph.   In place March 1, 1999.   Copyright © 1999 NetStrider.   Presented as a public service.

BACK <IFRAME> Command next

Command Syntax:

<IFRAME src="URL" command parameters></IFRAME>

Opens an independent frame within the HTML Document and loads the source code available at the specified URL into it for display.

The command is only supported by the Internet Explorer browser at this time.

See also:  <FRAME>, <FRAMESET>

Command Parameters:

name="frame name"

Declares the name of the independent frame to the browser such that the floating frame can become the object of the target of an <A> - hypertext reference link.

src="URL"

Defines the URL at which the code for display as the initial contents of the independent frame is available.

height="pixels"

Defines the height of the independent frame in pixels.

width="pixels"

Defines the width of the independent frame in pixels.
 

Example:

<IFRAME name="display_area" src="intro.html" height="150" width="300">

  • Defines a independent frame named display_area with dimensions 300 X 200 pixels.
  • Loads and displays the code from file intro.html.
  • Any subsequent hypertext reference anchors in the HTML document can address the independent frame as a target.
    See below:
<A href="chapt1.html" target="display_area">Chapter One</A>
  • Addresses named independent frame display_area as the object for the code contained in file chapt1.html.
  • Loads and displays the code from file chapt1.html into the independent frame.
See an actual working example if you are using the Internet Explorer browser.
Return to Section I:L


Return to the List of Commands
Author: Randy D. Ralph.  In place March 1, 1999.  Copyright © 1999 NetStrider.  World Rights reserved.




Hosted by uCoz