其他分享
首页 > 其他分享> > need

need

作者:互联网

<!doctype html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>select选择-按钮跳转</title>
<script type="text/javascript">
function setsubmit()
{
if(mylink.value == 0)
window.
if(mylink.value == 1)
window.location='http://www.w3cschool.cn';
if(mylink.value == 2)
window.location='http://www.w3cschool.cn';
}
</script>
</head>
<body>
<select name="mylink" id="mylink">
<OPTION value="0">百度</OPTION>
<OPTION value="1">w3cschool在线教程</OPTION>
<OPTION value="2">优聚</OPTION>
</select>
<input type="button" id="btn" value="提交" onclick="setsubmit(this)" />
</body>
</html>

标签:mylink,www,http,value,window,w3cschool,need
来源: https://www.cnblogs.com/limitedInfinite/p/15070735.html