<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>禁止超链接跳转</title>
<script>
function go()
{
alert(2);
window.location.href = 'http://www.ifeng.com';
return false;
}
</script>
</head>
<body>
<a href="http://www.baidu.com" onclick="return go()">Baidu</a>
</body>
</html>
禁止超链接跳转--经测试,可用
最新推荐文章于 2025-05-21 14:41:02 发布