PeFo Posted June 30, 2007 Share Posted June 30, 2007 Is there a way of forcing a document to be a part of a frameset. Search engines sometimes point to a single frame of my whole frameset. Something like: of main.php is not inside a frame it redirects to index.php. Thanks PeFo Link to comment https://forums.phpfreaks.com/topic/57882-forcing-frameset/ Share on other sites More sharing options...
Dragen Posted November 12, 2007 Share Posted November 12, 2007 Hi, I know this post is very old, but if you're still pondering about it I've got an answer.. I don't think it can be done in php, because by the time the page has been dumped in a frame the php has already happened. But it can be done in javascript. <!-- Begin if (parent.location.href == self.location.href) { window.location.href = 'index.php'; } // End --> Link to comment https://forums.phpfreaks.com/topic/57882-forcing-frameset/#findComment-389748 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.