点击网页任意地方弹出链接窗口

有时候,看到不少网页,点击任何地方,包括链接,也同时打开了广告页面。

代码如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>点击网页任意地方弹出窗口 脚本代码 中国E盟 www.chinae.org</title>
<script language="javascript">
document.onclick=function(){
window.open('http://www.chinae.org/?baidu.com');
}
</script>
<base target="_blank">
</head>
<body>
鼠标左键点击网页任意地方试试!
<a href="http://www.baidu.com">百度</a>
</body>
</html>