<html>
<head>
<title>formevent</title>
<script language="javascript">
function fun(thisurl){
if(window.confirm("确认删除?")){
alert("选择了“是”");
}else{
alert("选择了“否”");
}
}
function fun1(thisurl){
window.open(thisurl,"页面标题","width=470,height=150,scrollbars=yes,resizeable=no");
}
function fun2(thisurl){
window.location=thisurl;
}
</script>
</head>
<body>
<a href="#" οnclick="fun()">删除邮件</a>
<a href="#" οnclick="fun1('2eventform.html')">打开链接</a>
<a href="#" οnclick="fun2('1eventform.html')">重定向</a>
<form action="" method="post" name="myform">
选项:<select name="url" onChange="fun1(this.value)">
<option value="1eventform.html">1eventform.html</option>
<option value="2eventform.html">2eventform.html</option>
</select>
</body>
</html>