Re: Copyright Infringement and Frames [OFF, possibly]

Subject: Re: Copyright Infringement and Frames [OFF, possibly]
From: Barb Ostapina <Barb -dot- Ostapina -at- METROMAIL -dot- COM>
Date: Thu, 9 Apr 1998 15:27:34 -0500

Eric, what does adding this script do?
--B
barb -dot- ostapina -at- metromail -dot- com
...speaking only for myself.

To: TECHWR-L @ LISTSERV.OKSTATE.EDU
cc: (bcc: LOMBMML Ostapina Barb/OLS)
From: ejray @ RAYCOMM.COM @ METROMAIL
Date: 04/09/98 11:39:55 AM
Subject: Re: Copyright Infringement and Frames [OFF, possibly]




>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: Re: Defining Readability Levels
Next by Author: Re: Lurker wants opinions...
Previous by Thread: Re: Copyright Infringement and Frames [OFF, possibly]
Next by Thread: Re: Copyright Infringement and Frames [OFF, possibly]


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


Sponsored Ads