飞车新歌曲列表2016:dreamweaver中如何制作一张智能表单?

来源:百度文库 编辑:高校问答 时间:2024/04/30 19:35:45
非常着急的请求达人给我做一张智能表单,要求很简单,可是我不会做.要求如下:

制作一个下拉表单,之中有几个选项,一旦下拉选中表中的某一项,相应弹出一个windows的alert窗口.谢谢,请尽快!

你把下面的代码考过去试下吧:
<html>
<title></title>
</head>
<body>
<form name="form1" method="post" action="">
<select class=form onchange="window.open(this.options[this.selectedIndex].value,'','')" >
<option selected>友情链接</option>
<option value="http://www.yongji.info">永济市信息网</option>
<option value="http://www.yongji-tour.net/index.jsp">永济市旅游网</option>
</select>
</form>
</body>
</html>