PDA

View Full Version : "framebreaker" script


prodeveloping
09-18-2001, 09:42 PM
Hello all!

I have been very busy with schoolwork lately but I have a question...

I am creating a site that uses two horizonal frames (one on top of another) and I am integrating hierarchial menus in them. The problem is this - I have links to other "channels" of my site in the menus that I want to open in a full screen but the target=_top won't work in the menus. What I have done is I have the following

if (top.location != self.location) {
top.location = self.location.href}

located in each of the "channels" but then the "back" button won't work. Basically, what I want to know is if there is a different script that I can use besides the above one to "break" out of a frameset that will allow the use of the back button in IE.

I hope this makes sense.