<html>
<head><title>超链“确认”对话框</title>
<script>
//将下面一段代码插入<head>与</head>之间:
function rusure()
{
question = confirm("确实要去进入吗?")
if (question !="0")
{
window.open("","测试公窗
口","width=340,height=163,toolbar=0,status=0,menubar=0,re
size=0");
}
question =alert("警告信息");
question = prompt("问题","默认回答")
}
//在链接标签内加入onclick()语句:
</script>
</head>
<body>
<a href="" onClick="rusure(); return false;">来点击我</a>
</body>
</html>