HTML 下拉菜单中的选项怎样设置连接到目标网页,求代码
发布网友
发布时间:2022-04-26 21:53
我来回答
共2个回答
热心网友
时间:2023-11-07 13:34
<select onchange="javascript:window.open(this.options[this.selectedIndex].value)">
<option value="." selected="selected">select the item</option>
<option value="http://www.a.com">item a</option>
<option value="list/xx.html">item b</option>
<option value="http://www.c.com">item c</option>
<option value="http://www..com">item d</option>
</select>
<SELECT >
<OPTION>选项</OPTION><option value="选项.aspx
">i<OPTION>查询</OPTION><option value="查询.aspx
">i</SELECT>
热心网友
时间:2023-11-07 13:34
<select onchange="javascript:window.open(this.options[this.selectedIndex].value)">
<option value="." selected="selected">select the item</option>
<option value="http://www.a.com">item a</option>
<option value="list/xx.html">item b</option>
<option value="http://www.c.com">item c</option>
<option value="http://www..com">item d</option>
</select>
热心网友
时间:2023-11-07 13:34
<select onchange="javascript:window.open(this.options[this.selectedIndex].value)">
<option value="." selected="selected">select the item</option>
<option value="http://www.a.com">item a</option>
<option value="list/xx.html">item b</option>
<option value="http://www.c.com">item c</option>
<option value="http://www..com">item d</option>
</select>
<SELECT >
<OPTION>选项</OPTION><option value="选项.aspx
">i<OPTION>查询</OPTION><option value="查询.aspx
">i</SELECT>
热心网友
时间:2023-11-07 13:34
<select onchange="javascript:window.open(this.options[this.selectedIndex].value)">
<option value="." selected="selected">select the item</option>
<option value="http://www.a.com">item a</option>
<option value="list/xx.html">item b</option>
<option value="http://www.c.com">item c</option>
<option value="http://www..com">item d</option>
</select>