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 Quote Link to comment 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 --> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.