PDA

View Full Version : Frame Break


covert555
03-07-1999, 11:23 AM
Can any one give me some info?
I've seen a few sites out there that breakout of frames when you pull them up with in one.

Is this a simple code?
If so, can someone tell me how to accomplish this...

Thanks
Covert555

hearts
03-07-1999, 11:35 AM
I have seen that too and never paid attention to their code.

I am not sure what they used, but I know what will work.

<a href="http://www.doyagotit.com/" target="_top">break outta someone else's frames</a>



------------------
~~~ hearts ~~~

Heartistic Designs www.heartisticdesigns.com (http://www.heartisticdesigns.com)
Hearts www.heartsangels.com/hearts (http://www.heartsangels.com/hearts)
Heartistic Wishes www.heartsweb.com/heartisticwishes (http://www.heartsweb.com/heartisticwishes)
















[This message has been edited by hearts (edited 03-07-99).]

Deb
03-07-1999, 04:10 PM
The above works when you want to give the user the option of breaking out.

The below works when you do NOT want to give them the option...
<script language="JavaScript">
<!--
top.location.target="_top"
if(window.location.target != "_top") {
top.location.href=window.location.href
}
// -->
</script>

What this does is FORCE the page to NOT be inside a frame no matter whose frame it is http://www.aota.net/ubb/smile.gif

We use it on the FQuest site http://www.aota.net/ubb/surprised.gif

Deb

[This message has been edited by Deb (edited 03-07-99).]

hearts
03-07-1999, 04:27 PM
but if someone has their java turned off, which i am learning that a lot of folks do, that little snipplet of code won't work will it?

wondering why people turn their java off? TO save time downloading?

Deb
03-07-1999, 04:46 PM
If they have their "Java" turned off this will still work... If they have their "Javascript" turned off then this would not work... It's best to offer both where needed, the force, and the link.

Why? Usually speed, reliability, and firewalls.

Some just feel their surfing is better when they don't risk 'locking up' due to faulty scripts. Others are at work and certain firewalls will refuse such things making it rough to surf w/o the options turned off... shrug...

To me it's nice to always have the option whether I use it or not. It's annoying for the developer to not be able to determine what the visitor will or will not see when they have the option of changing their colors and changing the fonts and turning this or that on or off...BUT -- fact remains that it's the visitors pc and they have the right to view things how ever they want http://www.aota.net/ubb/wink.gif I've always been big on making sure freedom remains regardless of how big or small the privilege is :P

I still think they should view MY page the way I see it though <evil grin>

Deb

hearts
03-07-1999, 05:04 PM
i share in that <evil grin>

It does get frustrating when ya wanna do something, and you listen to people say, well you can do it, but it won't be good for so many others.

I thought part of web design was to be creative and innovative, and when you take in all the comments of how to be compatable with most viewers/broswers, it starts to make ya feel like you are being restricted.

BTW.. I kinda right clicked on that code a while back ago.. and I captured the little guy with the sunglasses too. oooooooooops.. http://www.aota.net/ubb/wink.gif -- I told ya i love FutureQuest (and even remembered it is all one word) http://www.aota.net/ubb/supergrin.gif

i see it was time to go to the FAQ page and get caught up on all the new faces around here! hehehe.

[This message has been edited by hearts (edited 03-07-99).]

covert555
03-07-1999, 06:34 PM
Thanks for all your help!!

I'll will try using the javascript, and let you know how it works

Thanks for the quick response....

Covert555

Armand
03-08-1999, 01:11 AM
Exactly the coding I've seen used Hearts. Noticed it once on one of my favorite sites, so I viewed the source. That's exactly what I would recommend.