Frequently Asked Questions


How can I target two frames with one hyperlink?

One way to accomplish this has already been discussed in Extra Frames: If the two frames have the same parent frame, then they can both be updated by updating the parent. Review lessons one and two for more details.

If the two frames do not have the same parent, the best course of action is to write Javascript that monitors and manages multiple frame updates. Unfortunately, the use of Javascript is beyond the scope of this tutorial, but good information about integrating Netscape frames and Javascript can be found in the March 1996 issue of Javaworld.

How can I make a form response appear in a different frame?

Just like regular hyperlinks, forms too can use targets to specify which frame or window should be updated. For example, suppose your document has two frames, one of them called "query_frame" and the other called "response_frame". Suppose further that the form is in the frame called query_frame, but you would like the results of the form, when it is submitted, to be displayed in the frame called "response_frame". All that you have to do is add a target to the form header, like this:

<form action=form_interpreter.cgi target=response_frame method=post> ... </form>

How can I program links to "exit" frames?

There is a reserved frame name called "_top" which serves this purpose well. Use the format

<a href=document_URL target=_top>...</a>
to make your links load documents into the entire browser window.


BACK to Main Document.
Hosted by www.Geocities.ws

1