PDA

View Full Version : Going from frames to a non-frame page?


kraftomatic
08-04-2003, 02:23 PM
Hey All,

I've got a quick question. I have two pages: main.html and view_page.html. View_page control 2 other pages via frames, which works fine.

However, if I am on "view_page.html" and click on the link to go back to the main page, the url on the status bar still displays the "view_page" page and not the main.html page.

The reason this is a problem is because a lot of stuff happens on view_page. If I click back to main.html and hit refresh, it refreshes view_page.

There has to be a way to get around this. I'm just not sure what it is. Any help would be appreciated.

Thanks.

giz
08-05-2003, 12:18 AM
You have got the correct target="_nav" (or whatever the frame is called) attributes on the relevant links?

kraftomatic
08-05-2003, 01:30 PM
For the link, I just have a basic "href=linkname.html". The link itself works, but if I then refresh the page, the "framed" page gets refreshed.

ronaldb66
08-05-2003, 02:06 PM
Lemme get this straight:
"main.html" is a plain ol' html page, no framesets;
"view_page.html" is a frameset page, containing two frames.

Your link is placed on one of the documents opened in one of the frames, and although it refers to "main.html", this document is opened in the frame the document holding the link is in. Still with me?

If this is the case, and you want to open "main.html" in the full browser window and not in one of your frames, include the _top target in your link, like:<href="main.html" target="_top">Back to the main page</a>

kraftomatic
08-05-2003, 02:19 PM
:)

That's what I needed. Thanks guys.