PeFo Posted July 3, 2007 Share Posted July 3, 2007 Hi I'm a copy-n-paste kind of javascript guy. Is getting close to having each framed document to redirect to top-document if no frameset is loaded. But I would like the GET-message to follow the redirection. Each frame-site got: <SCRIPT type="text/javascript" language="JavaScript"> pageLoc = self.location; pageAdd = top.location; if (pageLoc == pageAdd) { contentSrc = escape(pageLoc); contPage = 'index.php?' + contentSrc; top.location.href = contPage; } </SCRIPT> How do I read/copy whatever after ? in the source-URL and add it to contentSrc? PeFo 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.