js_input.php页面中<script language="javascript">
function check_input()
{
var wd = document.getElementById("keyword").value;
if(wd.length==0)
{
return false;
}else{
return true;
}
}
</script>  <form autocomplete="off" id="myform" action="index_rs.php" method="get" onsubmit="return check_input()">
<!--  <input type="hidden" name="act" value="search" />-->
  <input name="wd" id="keyword" style="height:22px;width:400px;margin-left:100px;line-height:22px;font-size:14px;">
  <input name="" type="submit" style="height:27px;width:100px;margin-left:10px;font-size:14px;
  line-height:22px;" value="立即搜索">
   </form>
现页面中,1如果输入为空时,不提交,只是刷新本页面
          2如果输入有值时,就提交
针对上面的代码,如何修改呀,或是怎么实现上面的二点功能呀,