DHTML 会将href属性中的字符串当作是一个连接地址,如果你想实现即有提示框又可以连接到所需网址,你可用onclick来实现
<a onclick="javascript:alert('a');this.href='http://www.sina.com.cn';" style="cursor:hand;">a</a>
<a onclick="javascript:alert('a');this.href='http://www.sina.com.cn';" style="cursor:hand;">a</a>
<html>
<head>
<base target="_self">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>base target</title>
</head>
<body>
<a href="javascript:alert('aaaaa');">aaaa</a>
</body>
</html>