如何让浏览器在访问链接时不要带上referer
function open_without_referrer(link){
document.body.appendChild(document.createElement('iframe')).src='javascript:"<script>top.location.replace(\''+link+'\')<\/script>"';
}
如果如果是新窗口打开,可以使用如下代码:
function open_new_window(full_link){
window.open('javascript:window.name;', '<script>location.replace("'+full_link+'")<\/script>');
}
参考链接:https://segmentfault.com/q/1010000000123441