JS 鼠标点击事件无法链接到指定页面
<SCRIPT type="text/javascript">
<!--
function searchBook(){
var searchType = "";
for (i=0;i<document.all.searchType.length;i++){
if (document.all.searchType[i].checked){
searchType = document.all.searchType[i].value;
}
}
var searchDescribe = document.getElementById("searchDescribeID").value;
location.href="oneType.jsp?searchType="+searchType+"&searchDescribe="+searchDescribe;
}
//-->
</SCRIPT>
------解决方案--------------------html代码呢。。应该是代码出错,导致没有执行到location.href这句
------解决方案--------------------用firebug跟踪,跳转前的语句有误!