|
By Eddy R.
8-1-00
Linking to other web sites is part of what makes the Web what it
is today, however linking to other web sites and making it look
like it's one's work is a very different thing. Most Web builders
do not appreciate seen their work being displayed as someone else's
- that is inside a frameset. What's the solution to this nuisance?;
a few lines of JavaScript.
The following script will make your site load into the top window
rather than into a frame. Make sure you place this script in the
<HEAD> of your document.
<SCRIPT language="JavaScript">
<!--
if (parent.frames.length > 0) {
parent.location.href = location.href;
}
// -->
</SCRIPT>
That's it! This short script will help to ensure that your site
is never loaded inside someone else's frameset.
|