当前位置: 代码迷 >> JavaScript >> JS 鼠标点符号击事件无法链接到指定页面
  详细解决方案

JS 鼠标点符号击事件无法链接到指定页面

热度:5   发布时间:2013-07-01 12:33:04.0
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>
JavaScript 鼠标 函数

------解决方案--------------------
html代码呢。。应该是代码出错,导致没有执行到location.href这句
------解决方案--------------------
用firebug跟踪,跳转前的语句有误!
  相关解决方案