我有一个小的DropDownList有3个选项。 问题是当我选择,比方说,第二个选项。 没有probs,打开一个新页面。HTML下拉列表更改
如果我点击选项1或3,没有probs。 但是,如果再次单击第二个选项,而不是单击1或2,则不会打开新页面。
有没有办法纠正这种情况,以便点击任何总是打开一个新窗口。
谢谢...韦恩
抱歉,我不能让“代码”或“HTML”的工作。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>myFavs-HtmlProbs.html</title>
<meta name="Generator" content="PureBasic">
<meta name="Description" content="Your description here...">
<meta name="Description" content="...Created by myFavs % PureBasic...">
<style type="text/css">
</style>
</head>
<body text="#000000" style="background-color:#A69E80; text-align:center;">
<br> <br> <br>
<!--dd <div style=-->
<table width="100%" border="0" style="text-align:center" cellspacing="0" cellpadding="0">
<tr style="text-align:center">
<!-- EXAMPLE: <MenuName="aaMost-Used"> --> <!-- rgb(250,240,255) -->
<select style="width:200px; font:14px Arial Black; color:rgb(0,0,0); background-color:rgb(231,169,126);" name="menu" onchange="window.open(this.value)">
<option selected="0" value="">aaMost-Used</option>
<option value="http://alternativeto.net/">AlternativeToSoftwares</option>
<option value="https://www.biblegateway.com/reading-plans/chronological/today?version=NLT">One Year Chronological Bible NLT</option>
<option value="http://www.portablefreeware.com/">portablefreeware.com/</option>
</select></td></tr></table><br></body></html>
我试过你的代码其工作正常... 什么是确切的问题....所有选项打开新窗口 – rahul
因为你的动作是'onchange',所以如果你多次选择相同的选项它将无法工作。 – wolfsgang