<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type='text/javascript'>
function submiturl(obj)
{
if(document.getElementById("u1").checked == true)
return obj.action="URL111111111111";
if(document.getElementById("u2").checked == true)
return obj.action="URL222222222222";
if(document.getElementById("u3").checked == true)
return obj.action="URL333333333333";
return obj.action="URLdefault";
}
</script>
</head>
<body>
<form method="get" action="">
<input type="radio" name="u1" id="u1" value="1" checked >url1<br/>
<input type="radio" name="u1" id="u2" value="2">url2<br/>
<input type="radio" name="u1" id="u3" value="3">url3<br/>
<input type="submit" onClick="submiturl(this.form)" value="提交">
</form>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type='text/javascript'>
function submiturl(obj)
{
if(document.getElementById("u1").checked == true)
return obj.action="URL111111111111";
if(document.getElementById("u2").checked == true)
return obj.action="URL222222222222";
if(document.getElementById("u3").checked == true)
return obj.action="URL333333333333";
return obj.action="URLdefault";
}
</script>
</head>
<body>
<form method="get" action="">
<input type="radio" name="u1" id="u1" value="1" checked >url1<br/>
<input type="radio" name="u1" id="u2" value="2">url2<br/>
<input type="radio" name="u1" id="u3" value="3">url3<br/>
<input type="submit" onClick="submiturl(this.form)" value="提交">
</form>
</body>
</html>
作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:http://jackxiang.com/post/3477/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!
评论列表