<div class="htmlarea"><textarea id="runcode30477"> <title>超链"确认"对话框</title> <script> //将下面一段代码插入<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> <a href="" onclick="rusure(); return false;">来点击我</a> </textarea></div>