Forum Moderators: open

Message Too Old, No Replies

Will my Frame Buster fail if visitor has JS turned off?

.. or will it magically still work?

         

larryhatch

9:43 am on Aug 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I use a frame buster that looks like this:

<BODY onLoad="if (top!= self) top.location.replace(self.location.href);"
TEXT="#000000" BGCOLOR="#efeeee" etc... ">

Question: Suppose some visitors have Javascript disabled.
Will my pages stay stuck in some perp's frame for those particular visitors? -Larry

kaled

9:54 am on Aug 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try turning off javascript. I think you'll find that even onload code is ignored.

You could add <base target="_top"> to break out of frames when a link is clicked.

Kaled.

larryhatch

10:02 am on Aug 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks Kaled! I think it was you that provided my original frame buster.

<base target="_top"> sounds very interesting!
Where exactly do I place that in my code?
Is there any downside to using that device? -Larry

larryhatch

10:50 am on Aug 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks again Kaled, no need to respond.

I'm using Firefox. I turned Java and JS both off and visited the framing site.
Clicking on my link, I got framed and stayed that way, just like you said.
I figured out how to include the <base target="_top"> snippet.
Having TWO <base .. statements would not validate, so I combined them as in
<base href="www.mysite.net" target="_top">
THAT worked, all tested out and it validates.

I would definitely recommend this to others as a defensive measure. - Larry