点击链接弹出对话框

1
2
3
4
5
6
7
8
9
10
11
12
<script language="javascript">
<!--
function outwarning(){
warning = confirm("确定退出吗?")
if (warning != "0"){
window.close()
window.open("default.asp")
}
}
-->
</script>
<a xhref="javascript:outwarning()">点我看效果</a>