Frames
Microsoft® Internet Explorer 3.0 can now display more than one pane (or frame) in its main window. Using frames, you can convey even more information on your Web page.
Internet Explorer 3.0 supports frames using the FRAMESET tag. When you use frames, you need to designate an .htm file for each frame.
Be sure to check out our cool Frames demo pages to find out how to create the most interesting pages using Frames.
Attribute | Explanation | Example | Source |
---|---|---|---|
FRAMEBORDER= | Provides the option to display or not display a border for a frame. | <FRAME FRAMEBORDER="Yes"> | IExplore |
MARGINHEIGHT= | Controls the margin height for the frame in pixels. | <FRAME MARGINHEIGHT="10"> | Netscape |
MARGINWIDTH= | Controls the margin width for the frame in pixels. | <FRAME MARGINWIDTH="20"> | Netscape |
NAME= | Provides a target name for the frame. | <FRAME NAME="top"> | Netscape |
NORESIZE | Prevents the user from resizing the frame. | <FRAME NORESIZE> | Netscape |
SCROLLING= | Creates a scrolling frame. | <FRAME SCROLLING="Yes"> | Netscape |
SRC= | Displays the source file for the frame. | <FRAME SRC="frame1.htm"> | Netscape |
NOTE: The FRAMEBORDER and FRAMESPACING attributes are inherited from
any containing FRAMESET tag, which means you only need to set the attribute on the
single, outermost FRAMESET tag to affect all FRAME tags on that page.
Attribute | Explanation | Example | Source |
---|---|---|---|
COLS= | Creates a frame document with columns. You can specify the column dimensions by percentage (%), pixels, or a relative size (*). | <FRAMESET COLS="25%, 100, *"></FRAMESET> | Netscape |
FRAMEBORDER= | Provides the option to display or not display a border for a frame. | <FRAME FRAMEBORDER="Yes"> | IExplore |
FRAMESPACING= | Creates additional space between frames in pixels. | <FRAME FRAMESPACING="30"> | IExplore |
ROWS= | Creates a frame document with rows. You can specify the row dimensions by percentage (%), pixels, or a relative size (*). | <FRAMESET ROWS="15%, *, 300"></FRAMESET> | Netscape |
Attribute | Explanation | Example | Source |
---|---|---|---|
<NOFRAMES> | Provides HTML for browsers that do not support frames. | <NOFRAMES>You need Internet Explorer 3.0 to view frames!</NOFRAMES> | Netscape |
The TARGET attribute allows you to specify which window you would like to load
a document into. The TARGET attribute can be used with the A, AREA, BASE, and FORM
tags which are outlined below.
Attribute | Explanation | Example | Source |
---|---|---|---|
"window" | Specifies to load the link into the targeted window. The "window" must begin with an alpha-numeric character to be valid, except for the four target windows detailed below. | <A TARGET="viewer" HREF="sample.htm">Click here to load the link into "viewer" window.</A> | Netscape |
"_blank" | Specifies to load the link into a new blank window. This window is not named. | <A TARGET="_blank" HREF="sample.htm">Click here to load the link into a new blank window.</A> | Netscape |
"_parent" | Specifies to load the link into the immediate parent of the document the link is in. | <A TARGET="_parent" HREF="sample.htm">Click here to load the link into this page's parent window.</A> | Netscape |
"_self" | Specifies to load the link into the same window the link was clicked in. | <A TARGET="_self" HREF="sample.htm">Click here to load the link into this same window.</A> | Netscape |
"_top" | Specifies to load the link into the full body of the window. | <A TARGET="_top" HREF="sample.htm">Click here to load the link into the full body of the window.</A> | Netscape |
The following tags all support the TARGET attribute.
Tag & Attribute | Explanation | Example | Source |
---|---|---|---|
<A TARGET="window"> | Specifies to load the link into the targeted window. | <A TARGET="viewer" HREF="sample.htm">Click here to load the link into "viewer" window.</A> | Netscape |
<AREA TARGET="window"> | Specifies to load the link into the targeted window. | <AREA TARGET="viewer" HREF="sample.htm" SHAPE="CIRCLE" COORDS="50, 25, 150, 125">Click on the map to load the link into "viewer" window. | Netscape |
<BASE TARGET="window"> | Specifies to load all of the links on the page into the targeted window. This can be overridden by specifying a different target attribute for a specific link. | <BASE TARGET="viewer">The default target window for this page is the "viewer" window. | Netscape |
<FORM TARGET="window"> | Specifies to load the results of the form submission into the targeted window. | <FORM TARGET="viewer" ACTION="http://www.sample.com /bin/search">When you submit the form the results will be posted to the "viewer" window.</FORM> | Netscape |
© 1996 Microsoft Corporation