PDA

View Full Version : Disable page from being displayed in a frame


Muffin_LA
28-10-2005, 02:49/02:49AM
Hi everyone:

I need to stop a page from being displayed in a frame.

Any ideas?
I have searched online but all I have seen is programs to do it. I need a javascript code.

Thanks
Linda

grungee
28-10-2005, 03:52/03:52AM
There are java scripts I think they are called popout or something there is a thread here which has the code will look for it now and in http://www.ihelpyouservices.com/forums/showthread.php?s=&threadid=20382 this thread there is some java script that does what you ask

this thread also talks about how to protect yourself http://www.ihelpyouservices.com/forums/showthread.php?s=&threadid=20422

g1smd
28-10-2005, 07:40/07:40AM
Google for www.unicorntrails.com - I like the way that their code works. It is search engine friendly to the max too.

Muffin_LA
28-10-2005, 15:12/03:12PM
Thank you Grungee and G1smd for your help.

Its not quite what I am looking for. I am working on a JavaScript assignment and what I need to do is this. I have a page with 2 frames. The first frame has a link for a page to open in the second frame. What I need to do is stop the page from being displayed in the second frame. I have re-read my text about 20 times and it does not say how to do it.

Thanks

g1smd
28-10-2005, 15:25/03:25PM
Damn. You need to stop the page from being displayed in a frame. You need a frame-buster script.

The code I linked to is for re-framing a page: and that is the exact opposite of what you wanted to do.

Next time, I will read the question more closely.

Muffin_LA
28-10-2005, 16:04/04:04PM
LOL.. thats ok. Maybe I didnt word it right. Hey I appreciate any help even if its not what I need *S*

Thanks again

grungee
29-10-2005, 00:39/12:39AM
There is a frame buster code in one of the forum links I supplied Deb(Websavvy) supplied it I think from memory you just need to look in the thread.

Muffin_LA
29-10-2005, 02:28/02:28AM
I got it to work. I appreciate all the help.