Re: Copyright Infringement and Frames [OFF, possibly]

Subject: Re: Copyright Infringement and Frames [OFF, possibly]
From: "Eric J. Ray" <ejray -at- RAYCOMM -dot- COM>
Date: Thu, 9 Apr 1998 11:39:55 -0600

>Recently I found my Web site hijacked by a group called the Mining
>Company. Within this group's Website is a page devoted to technical
>writing. Cool idea, eh? Maybe, except they have links that are embedded
>within their frameset. That is, when you click a link to an external
>page, the external page loads subordinate to the frameset.

Try adding this script to the HTML document head in your documents.

<SCRIPT>
<!--
top.location.target="_top"
if (window.location.target != "_top")
{
top.location.href=window.location.href
}
//-->
</SCRIPT>

If you're using frames in your own document, you'd want to
modify the code to check what the frame name is and
break out only if needed. For example, if your frameset names the
content frame "body", use this:

<SCRIPT>
<!--
top.location.target="_top"
if ((window.frames.name != "body") && (window.location.target != "_top"))
{
top.location.href=window.location.href
}
//-->
</SCRIPT>

Eric



*********************************************************
* Eric J. Ray, ejray -at- raycomm -dot- com, http://www.raycomm.com/
* TECHWR-L Listowner, co-author _Mastering HTML 4.0_
* _HTML 4 for Dummies Quick Reference_, and others.
* RayComm, Inc., currently accepting contract inquiries.




Previous by Author: Secretaries' Day
Next by Author: Re: Copyright Infringement and Frames [OFF, possibly]
Previous by Thread: Re: Copyright Infringement and Frames [OFF, possibly]
Next by Thread: Fw: Copyright Infringement and Frames [OFF, possibly]


What this post helpful? Share it with friends and colleagues:

Sponsored Ads


Sponsored Ads