document.onkeydown = function (e) { // 回车提交表单 var key = $('#searchKey').val() key = key.replace(/\s*/g, ""); // 兼容FF和IE和Opera var theEvent = window.event || e; var code = theEvent.keyCode || theEvent.which || theEvent.charCode; if (code == 13 && document.activeElement.id == "searchKey") { if (key != null && key != "") { window.location.href="/Bvyjmjbsz/Tfbsdi/783033378236941?lfz=" + key + "" } else { alert("请输入您要搜索的内容"); } } } function serach_pro() { var key = $('#searchKey').val() key = key.replace(/\s*/g, ""); if (key != null && key != "") { window.location.href="/Bvyjmjbsz/Tfbsdi/783033378236941?lfz=" + key + "" } else { alert("请输入您要搜索的内容"); } }
  • 意见调查