Force page to appear in the CHILD frame

They have: 58 posts

Joined: Nov 1999

Hi,
I know of the scripts that can "break" the frames of other sites and load them onto the top frame. I have also seen the scripts that will load up the appropriate frameset and then load the page within that.

Now, the situation here is that we are opening external pages from the left frame into the main frame. We don't want these pages to break our frame set and load on the full window. We either want them to be in the main frame or open a new window for the page.

How can we do this?

TIA.

Best Regards,
Kapil

Busy's picture

He has: 6,151 posts

Joined: May 2001

use "target=" in your links

in your frameset, name the frames, ie:

<frame src="left.html" NAME="LEFTSIDE">
<frame src="right.html" NAME="RIGHTSIDE">

then in your links add target=, ie:

<a href="somewhere.html" target="rightside">

this would open somewhere.html into the righthand frame from the left.

to open a new window, use target=_top or _new

if you load a page into your frame set that uses a javascript to break out of frames you can not stop this. Also note most sites arent made or suited to be displayed in frames.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.