I have a HTML page A from which I open the HTML page B with window.open
. I then redirect the HTML page B to HTML page C but I get the HTML page A as the referrer . I need to go onto page C with B as the referrer.
Because the main referer is Ahtml page.
you can use window.location.href
window.location.href example:
window.location.href = 'http://www.google.com'; //Will take you to Google.
window.open() example:
window.open('http://www.google.com'); //This will open Google in a new window.
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.