不想用弹窗的方式,急呀,急求解决办法!!!

来源:百度知道 编辑:UC知道 时间:2024/06/22 03:02:45
这段代码在ie中被做为弹窗阻止(下拉框中的项目,选择后要直接在新窗口中打开),如何解决
<select style="color: white; background-color: blue;" onchange="javascript:window.open(this.options[this.selectedIndex].value);" name="gotopage">
<option selected="selected">进入您的收费邮箱</option>
<option value="http://www.test.com/">test</option>
<option value="http://www.china.com/">test1</option>
</select>

这是没办法的,如果不想的话你就在本窗口打开,把地址前面的http://去掉就可以了。

可以用本窗口打开啊
<select style="color: white; background-color: blue;" onchange="javascript:location.href=this.options[this.selectedIndex].value;" name="gotopage">