Wildfire Home Image [4k]

Frames & Windows HTML FAQ Answers

Here are the answers to the Frames and Windows HTML FAQ. If you have any questions on any of the Wildfire subject-matter then don't hesitate to email me.

How do you get a link to open a new window?

This is quite easy to do. You set the TARGET attribute of the link to a special name, such as "newwindow" or "mywindow". This will open a new browser window with the name that you specify:

<A HREF="page2.html" TARGET="newwindow">click me!</A>

If any more of your links have the target "newwindow" they will then open in this new window.

How do you get a link to open in a specific frame?

To get a link to open in a specific frame is similar to the way you make a link open in a new window. Firstly make sure that you have named all of your frames in the frameset definition:

<FRAME SRC="main.htm" NAME="mainframe">

You then set the TARGET attribute of the <A> tag to be "mainframe".

What steps can you take for browsers that don't support frames?

You can use the <NOFRAMES> tag in your frameset page. Below the frameset definition put the <NOFRAMES> tags and anything in-between them will be rendered by browsers that do not support frames, but will be ignored by browsers that do:

<FRAMESET>
...
</FRAMESET>
<NOFRAMES>
<P>Content for non-frames browsers in here</P>
</NOFRAMES>

How can I break my page out of a frameset?

It is easy to get rid of frames. You set the TARGET attribute of the link you want to use to "_top" this will make the link open in the full browser window:

<A HREF="page2.htm" TARGET="_top">click me!</A>

© Jamie McHale 1998 - 2000 - http://www.btinternet.com/~wildfire/