Title: RE: [sambar] Links from a Frame {01}

In short, yes.  You would have to include a snippet of JavaScript in each file you want to check.

Include this in the HEAD section:

[script]
if (parent.frames.length > 0) {
    parent.location.href = "self.document.location
}
[/script]

Of course, this will prevent you from framing the file on your own site as well.  If you want/need to do that, you'll need to add another piece of code that compares the referring domain as well.

-Jeff

-----Original Message-----
From: Dave Culbertson [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 04:50 PM
To: [EMAIL PROTECTED]
Subject: [sambar] Links from a Frame {01}

Another server is linking to my website and they are doing it from within a frame. Is there anyway to pop out of their frame? Thanks

Dave...

-------------------------------------------------------
To unsubscribe please go to http://www.sambar.ch/list/



Reply via email to