Thursday, February 22. 2007
Comments
Display comments as
(Linear | Threaded)
can i get the reverse script for this. that is i want to insert a frame protected page in a frame in my website which is under construction.
#1
on
2008-03-24 05:17
Generally speaking I try and avoid frames if at all possible, and it always has been for me, but you could try the following.
if(top.location == self.location) {
self.location.replace("frameset.html")
}
That isn't going to be able to detect if someone forces the page into a different frameset though. For the code above any frameset will do.
if(top.location == self.location) {
self.location.replace("frameset.html")
}
That isn't going to be able to detect if someone forces the page into a different frameset though. For the code above any frameset will do.
Will this code reduce your google page rank? I had been using a different frame-blocking javascript code, and it totally killed my google rank.
I see no reason why it should. I would be interested in seeing the code you had a problem with.
The author does not allow comments to this entry

In the previous post looking at frames I showed you how to keep your site out of frames. Although this is often needed it can be a little heavy handed. In this post I show you how to handle exceptions.
Tracked: Feb 25, 04:12
This is the final instalment in a three part series. In part 1 I briefly outlined how to prevent other sites displaying your web pages within frames. In part 2 I talked about how to allow exceptions for the rare situations when you want to allow sites t
Tracked: Mar 13, 03:36