Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

Helping orphaned pages find their Parents

Surfers enter pages within a framed site.

2:30 am on Aug 26, 2002 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 5, 2001
votes: 0

Hi all,

We have a framed website and greatly regret it for the following reason. Visitors searching on keywords of course come in to the site via inward pages. We use Javascript to make sure that the orphaned page finds its frameset, the problem we have is that when the visitor tries to leave he/she can't because everytime they click the back button it redirects back to the same page. the javascript I use is as follows

<script type="text/javascript" language="JavaScript"><!--
if(top.location == self.location) {
self.location = 'framesets/widgets.com';
} //--></script>

Every page I create I have to crate a frameset page for and boy is it getting dull. Any ideas how I can get round this so that visitors can leave? I have a top,side and middle frame if this helps.

3:32 am on Aug 26, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
votes: 0

The basic logic for this, and one way to implement it, is detailed in message #21 of our "Generic Javascript" thread in the Browsers and HTML Forum - specifically this post about forcing many pages into frames with one script [webmasterworld.com].

In practice, this can also be executed server-side, depending on what scripting you have available (we use jsp on the framed site I work with). However, the client side solution works pretty well for the average visitor.

The sample code posted uses only two frames, but it's easy enough to extend it to any configuration.

5:45 am on Aug 26, 2002 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member fathom is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:May 5, 2002
votes: 109

Thanks tedster. However, you opened the door to another question.

From the thread you posted I found

Breaking your page free from another site's frames
<SCRIPT language="JavaScript"><!--
if (parent.frames.length > 0) {
parent.location.href = location.href;
// --></SCRIPT>

A problem that is appearing (at least for me) is portals using content from external sites for their exclusive (subscription based) audiences. An external link is provided to these users and popped into a frame so that the user can return.

I don't mind people seeing and using content, but what I don't like is another company making money on what I offer for free, falsely indicating (through lack on advertised ownership) that this is their own development and without permission.

I have sent many emails politely asking:

1. free access to their portal (since they are using content for free to make revenue)

2. an external "public link" and acknowledgement of ownership, and

3. if one of the above is not satisfactory, removal of all links from there archives.

This is very problematic and time consuming to address though.

Will the above script work well to a avoid this non-permission misuse of web page content, and are there any other technical or display issues to be concerned with.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members