简体   繁体   中英

Get the URL of a page after a Javascript redirection windows location How to i Src LInk

在重定向Windows.location = 1后,将此链接粘贴到浏览器地址栏后的示例:重定向后,主链接http://example.com/v?id=xxxxxxx&itag=36显示如下:2: https://r10---sn-4wg7en7l.c.docs.google.com链接https://r10---sn-4wg7en7l.c.docs.google.com如何获取iframe src的第二个链接,请对此提供任何帮助

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']

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM