最美的时光陆蔓新文:DW中的跳转菜单后的GO按钮如何现实?

来源:百度文库 编辑:神马品牌网 时间:2024/03/29 15:03:01
在DW中添加入跳转菜单,在设置中选中了"菜单之后插入前往按钮",可是在浏览中,却没有效果...当我们在跳转菜单中选中了某个选项时,它就直接跳转到该页面了..后面的前往按钮根本没有效果?为什么?
当然,跳转菜单的行为是:onchange,我知道是选择时,也许这就是原因...可是不选这个,又该选哪一个呢?请大家帮帮忙....

<html>

<head>

<script type="text/JavaScript">
function goto(){document.location='http://www.' + select.value + '.com';}
</script>

</head>

<body>

<select name="select">
<option value="163">网易</option>
<option value="baidu">百度</option>
<option value="qq">腾讯</option>
</select>
<input type="submit" name="Submit" value="提交" onclick="goto()" />

</body>

</html>