我的JS怎么加上form表单之后就没有用了呢
<html><head>
<script type="text/javascript">
window.onload=function disp_alert()
{
var a=document.getElementById('channeltype1');
if(a.checked){
location.href=' http://www.';
}
}
</script>
</head>
<body>
<form>
<input name="channeltype" id="channeltype1" type=radio >公司
</div>
<div class="form">
<button type="submit" class="search-show" onClick="disp_alert()">搜索</button>
</form>
</body>
</html>