Click to See Complete Forum and Search --> : reverting a frame back into a non frames page


webrunner
03-04-2003, 06:04 PM
Hi, all here is my latest obstacle that ihave been working on.
I need to make a frames page to go back to a non frames with the current contents of the left frame inside of it when you click on a link.
href="javascript:location.href=parent.realchoices.document.location.href"
This code here works up until you start navigating through a particular page different from the page you started with in the frame then it refuses to budge. I am not real sure why this isn't working for me. anybody got any ideas.

webrunner
03-04-2003, 07:49 PM
this will work it turns out location.href=parent.realchoices.location.href. yours may work I haven't tried it. Turns out my test was going off the server so it won't work because you simply can not reference it if it is off the server. Sorry about this, i feel abit sheepish but thanks for the help.

IxxI
03-05-2003, 03:53 AM
So how would I get it so that 3 frames (top, main and bottom) all go into one non-framed page? Sorry I couldn't quite follow the coding below.

IxxI

webrunner
03-05-2003, 01:14 PM
clark provided some of the answer, although you can do it without this. top.window.location.href="whatever url" should do what you want it is the same as <a href="whatever" target="_top" > should also do it. Because even in a three frame page, top should refer to the top most window thus the page holding the three frames when you change its location it should go to the appropriate url inputted. Try it if it doesn't work post it. I was trying to revert back to a page referenced by a particular frame.