Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you return to previous page in frames

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I was just wondering what the code was to go back to previous page when working with frames. I start out on a page with one frame hit a button and go to page with two frames. now i want to go back to the first page but all i can get is that page to show up in one of the frames in the page with the two frames this not what i want.
thanks for any help
 
Hi,

You can use the javascript history command to go back one page and make sure you direct it to parent top.

Cheers

James
 
The Easiest way to back up to a previous page in Frames is to reload the index file either over the current window or in a new window. I have several places in my webpage that have a link back to home for instance (both text and graphics) and I just reload the main Frames Index file in the current window. It works just fine and if you are using relative addressing it is easy to port to the net from local.

 
Use the "_top" value of the target attribute to break out of the frameset ...

<a href=&quot;previous_page.html&quot; target=&quot;_top&quot;>Previous Page</a>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top