让浏览器在访问链接时不要带上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>');
 }

 

posted @ 2017-10-13 11:41  叶小凡  阅读(1106)  评论(0编辑  收藏  举报