justuptime.com - monitor your servers & websites

Force page to appear in the CHILD frame

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

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
Modrater

He has: 6,157 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.

<?bhb if(broken){ echo("It wasn't me Smiling "); } ?>
Learn HTML the ez way - EzHTML.net

Some people are like slinkies, they dont really serve any purpose but they still bring a smile to your face when you push them down the stairs ...