Barney, Thanks - I'll give that a shot.
-Mark -----Original Message----- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Sunday, March 20, 2005 6:54 PM To: CF-Talk Subject: Re: circumventing framing.... Try this (same idea, different form): if (self.location != top.location) top.location = self.location I'm thinking that maybe the 'href' property of location can't be accessed across domains, but the location object itself can. cheers, barneyb On Sun, 20 Mar 2005 15:53:34 -0600, Mark A Kruger <[EMAIL PROTECTED]> wrote: > 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 > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199504 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

