标签:js
JS控制新窗口打开网页,防止蜘蛛爬行
<a href="javascript:void(0)" onclick="locationUrl()">点击</a> 这里也可以是图片
<script>
function locationUrl(){
var u1 = ‘http://www.‘;
var u2 = ‘baidu.com/hl/‘;
var u3 = ‘bak_header.php‘;
var url = u1+u2+u3;
window.open(url);
}
</script>
JS控制新窗口打开网页,防止蜘蛛爬行,布布扣,bubuko.com
标签:js
原文地址:http://blog.csdn.net/cccc189/article/details/37726499