<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控制新窗口打开网页,防止蜘蛛爬行
时间: 2024-10-12 20:09:01