[英]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的第二個鏈接,請對此提供任何幫助
您可以使用javascript中的window.location.href
來獲取頁面的網址,或使用document.referrer
獲取上一頁。
在PHP中,您可以使用$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']
獲得當前頁面,並使用$_SERVER['HTTP_REFERER']
獲得前一頁。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.