Board logo

标题: 站外链接,防止页面被跳转 [打印本页]

作者: fangzhen    时间: 2009-10-20 15:13     标题: 站外链接,防止页面被跳转

<!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>




欢迎光临 PHP开发笔记 (http://phpvi.com/) Powered by Discuz! 6.1.0