文件名:使用window.open打开新页面.html
文件代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>使用window.open打开新页面</title>
<script language= "JavaScript">
function fun(thisurl){
alert("通过this.value就可以取到Select的值 = "+thisurl);
window.open(thisurl,"页面标题","width=470,hight=15,scrollbar=yes,resizable=no");
}
</script>
</head>
<body>
<form action="" method="post" name="myform">
网址:<SELECT name="url" onChange="fun(this.value)">
<option value ="script_eventform_01.html">EVENT-01</option>
<option value ="script_eventform_02.html">EVENT-02</option>
<option value ="script_eventform_03.html">EVENT-03</option>
</SELECT>
</form>
</body>
</html>