<
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,resize=0");} question =alert("警告信息");question = prompt("问题","默认回答")}
//
在链接标签内加入onclick()语句:
</
script
>
</
head
>
<
body
>
<
a href
=
""
onClick
=
"
rusure(); return false;
"
>
来点击我
</
a
>
</
body
>
</
html
>
转载于:https://www.cnblogs.com/pageantry/archive/2007/01/08/615065.html
转载请注明原文地址: https://win8.8miu.com/read-7416.html