js新窗口打开或转向链接时不发送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>');
}


你可能感兴趣的:(JavaScript,JavaScript,JavaScript,JavaScript)