Forum Moderators: open

Message Too Old, No Replies

Site Link and putting my site in frames? Need advise

Removing my site from Someones Frames

         

sparkie

1:17 am on May 9, 2003 (gmt 0)



My site is being linked to and put into a frame from another website. What I need to know is how to disolve the frames, and make my site the parent site.

It seems like a long time ago that I saw a piece of code that would do that, but I cannot remember what or where I found it. Any help would be appreaciated.

Thanks in advance for any assistance with this issue.

John
sparky@roava.net

ShawnR

2:04 am on May 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Sparkie and welcome to WebmasterWorld!

One way is to put the following javascript code between a <script...> and </script> tag into your <head> section:

if (top!= self)
top.location.href = self.location.href;

Another way would be something like:

if (top!= self) {
window.open(self.location.href, "_blank", "");
self.location.href = "copywrite_violation.html";
}

Where copywrite_violation.html is an html file in the same directory as your html file, and it has something like the following in it:

<html>
<head>
</head>
<body style="...some really big bold font...">
The website you are viewing has violated copyright!
</body>

Shawn

sparkie

2:35 am on May 9, 2003 (gmt 0)



Thanks.. Got it working... I knew it was out there... But sometimes after you look for a while it all gets foggy... Well into focus now.

John