Ok - that gives me a "permission denied" JS error.

-Mark

-----Original Message-----
From: Jared Rypka-Hauer - CMG, LLC [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 20, 2005 3:45 PM
To: CF-Talk
Subject: Re: circumventing framing....


Something like this should do ya:

<script>
myURL = "http://www.yadda-dadda.com/";;
if (top.location.href != document.location.href ) top.location.href = myURL;
</script>

Or you could wrap that in a function and call it from the onLoad
parameter of your body tag:


<script>
function escapeFrames() {
var myURL = "http://www.web-relevant.com/";;
if (top.location.href != document.location.href ) top.location.href = myURL;
}
</script>
<body onload="escapeFrames()">

Either way, should do ya.

Laterz,
J

On Sun, 20 Mar 2005 14:45:29 -0600, Mark A Kruger
<[EMAIL PROTECTED]> wrote:
> Javscript or site config gurus:
>
> I have a site we manage "cardavenue.com".  We found another site called
> "giftcardbuy.com" that actually frames OUR site - in other words, the
title
> and URL address all say "giftcardbuy" but the content frame is our site.
go
> there and check out "view source" from the menu if you want to see.
>
> My question is A) why would someone do this - what purpose could there be?
> and B) how do I circumvent this?  I can add a "_top" to every link I
> suppose - but that doesn't help the home page. does anyone else have any
> ideas?
>
> -Mark
>
>


--
Continuum Media Group LLC
Burnsville, MN 55337
http://www.web-relevant.com
http://www.web-relevant.com/blogs/cfobjective



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199495
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to