发新话题
打印

站外链接,防止页面被跳转

站外链接,防止页面被跳转

<!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>
<meta http-equiv="Content-Type"
content="text/html; charset=gb2312" />
<title>opener</title>
</head>
<body>
<script>
function opensite(o){
win = window.open(o.href,"_blank");
win.opener=null;
return false;
}
</script>
<a href="http://www.google.cn/">http://www.google.cn/&lt;/a>
</body>
</html>

TOP

发新话题