View Full Version : Quick question about frames

Jan 31st, 2003, 10:52 AM

Is there are script (or a way) to keep pages not showing without frames.

I mean i'm designing a site that uses frames and i don't want that someone accidentally "surf's" intoa body frame (without the navigation bars)

So any of you know any tricks how to keep that from happening?

Thanks in advance!

(and ... no i really want to use frames :) so "don't use frames" :) isn't an answer )

Jan 31st, 2003, 11:53 AM
Afraid the best tips is Don't Use Frames Without a Very Good Reason. :(

But see here:

I recommend that you choose the simple solution with a link. It's better for many reasons.

Jan 31st, 2003, 12:38 PM

Why don't you check out this cool script, it well...ensures your pages are kept in the framed page. Enjoy!

Keep-in-frames script (http://www.javascriptkit.com/script/script2/keepframes.shtml)

Jan 31st, 2003, 01:44 PM
Thanks for your replies!

I tried the script but somehow i couldn't get it to work?

Well, i'll try to experiment with those a little bit more :)