PDA

View Full Version : Quick question about frames


Elmore
01-31-2003, 09:52 AM
Hi!

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 )

meow
01-31-2003, 10:53 AM
Afraid the best tips is Don't Use Frames Without a Very Good Reason. :(

But see here:
http://www.htmlhelp.com/faq/html/frames.html#frame-context

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

JustAsking
01-31-2003, 11:38 AM
Elmore,

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)

Elmore
01-31-2003, 12: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 :)