0

Example this link after paste on browser address bar after redirect of windows.location= 1: main link http://example.com/v?id=xxxxxxx&itag=36 after redirect show like this 2:reidrect link https://r10---sn-4wg7en7l.c.docs.google.com how to i get 2nd link for iframe src please any one help on this

1 Answers1

1

You can get the url of your page with window.location.href in javascript or get the previous page with document.referrer
In PHP you can get the current page with $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] and the previous page with $_SERVER['HTTP_REFERER']

Emina
  • 26
  • 5