[Home]Keep documents inside their frameset

HomePage | RecentChanges | Preferences | Newbie Help

Category HTML FAQ

 <SCRIPT LANGUAGE="JavaScript">
 <!--
 function framecheck()
        {var parentframe = 'http://www.myownsite.com';

        if (parent.location.href == self.location.href)
         {var current = window.self.location.pathname;
             window.location.replace (parentframe + '?' + current);
             }
        };
 //-->
 </SCRIPT>

More complicated solution at http://pawluk.com/public/dwextensions/frameJamDoc.shtml

See also http://www.htmlhelp.com/faq/html/all.html#frame-context


Comments --


HomePage | RecentChanges | Preferences | Newbie Help
This page is read-only | View other revisions
Last edited March 22, 2002 10:35 am (diff)
Search:

This FAQ is happily hosted by Betadome Digital Media