簡體   English   中英

獲取Javascript重定向窗口位置后的頁面URL如何使用Src LInk

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM