不能直接跳转?比如:
<button onclick="window.location.href='http://localhost/next.jsp'">Next</button>

解决方案 »

  1.   

    form的action?
    document.form名.action = "跳转地址";
      

  2.   

    function sendForm()
      var xhr=new Ajax();
      var param="username"+document.all.username.value";
      xhr.open("post",htmlformActionUrl,true);
      setRequestHeader("content-type","application/x-www-form-urlencoded");
      xhr.onreadystate=getHandle;
      xhr.send(param);//param为表单参数和值
    function getHandle()
    {
       if(xhr.readystate==4)
       {
          if(xhr.status==200)
          {
             /*ActionServlet处理完提交的数据后返回给Browser端的内容*/
          }
       }
    }