你可以使用函数阿
<a href="javascript:void(0)" onclick="newLocation('a.asp')">test</a><script>
function newLocation(url){
if(confirm("是否跳转?")){ window.location.href=url;
}
}
</script>
<a href="javascript:void(0)" onclick="newLocation('a.asp')">test</a><script>
function newLocation(url){
if(confirm("是否跳转?")){ window.location.href=url;
}
}
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货