Forum Moderators: open
On the true framebusting issue, my thinking was dependent on the framed site being accommodating to the framing site. As we discussed in this thread [webmasterworld.com], there's really no way to do anything like this externally, and there shouldn't be, either.
In the case of a cooperative site, I was orignally much too complicated in my thinking. A site could write their js to test for top=self OR top="permitted location", and then reload the page at the top level only if both tests fail.
<script language="Javascript">
<!--
<!--One step to installing this script-->
<!--1) Simply add the below to your HEAD.-->
<!--Change "framespage.htm" to name of frame you wish the page to be kept in-->
if (top.location == self.location) {
top.location = 'framespage.htm'
}
//-->
</script>
As I understand it, if that js is on the framing page in your site, it will only run once. It won't get a second chance to run when the target="_top" link is clicked in the framed content.
And if the other site put it on their page, they'd end up giving everyone YOUR site as a frame.
If you ever figure something out, I'd love to know about it, because I have a place I could use it immediately. Right now my gut says this is a no-go.