Jump to content

Forwarded GET


PeFo

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/58287-forwarded-get/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.