check()的最后加:  window.submit(); 提交表单

解决方案 »

  1.   

    renturn之前增加一句:
    fr.action="index.html";
    return ;我试了一下,可以。不知道有没有更好的办法
      

  2.   

    return之前增加fr.action="index.html";
      

  3.   

    恩,你的方法确实可以!谢谢但是我觉得HTML这点确实做的不好,后来我又把fr.submit(); 都删了还是会自动挑战到index2.html你们说搞笑不搞笑