【发布时间】:2017-08-06 01:42:29
【问题描述】:
我有一个 HTML 页面 A,我用window.open 打开 HTML 页面 B。然后我将 HTML 页面 B 重定向到 HTML 页面 C ,但我将 HTML 页面 A 作为引用者。我需要以 B 作为推荐人进入页面 C。
【问题讨论】:
-
我使用这个脚本:
code function newtab() { var w1 = window.open('https://www.google.fr'); setTimeout(function(){ red(w1); }, 3000); } function red(tab) { tab.location.assign('https://www.whatismyreferer.com'); }
标签: javascript html redirect referer