<html xmlns="http://www.w3.org/1999/xhtml">
<<script type="text/javascript">
 
  function submiton(){
  if(2>1){
  alert("输入错误");
  return false;
  }
  }
</script>
<body>
<form onsubmit="retrun submiton()" method="post" action="home.html">
<input type="submit" value="tijiao">
</form>
</body>
</html>

解决方案 »

  1.   

    "retrun submiton() ==> return submiton()
      

  2.   

    return submiton()
      

  3.   

    return 写错了 建议LZ用一个能区分js关键字的文本编辑器 人难免不小心 呵呵
      

  4.   

    <html xmlns="http://www.w3.org/1999/xhtml">
    <<script type="text/javascript">
      
      function submiton(){
      if(2>1){
      alert("输入错误");
      return false;
      }
      }
    </script>
    <body>
    <form onsubmit="retrun submiton()" method="post" action="home.html">
    <input type="submit" value="tijiao">
    </form>
    </body>
    </html>
      

  5.   

    <html xmlns="http://www.w3.org/1999/xhtml">
    <<script type="text/javascript">
      
      function submiton(){
      if(2>1){
      alert("输入错误");
      return false;
      }
      }
    </script>
    <body>
    <form onsubmit="retrun submiton()" method="post" action="home.html">
    <input type="submit" value="tijiao">
    </form>
    </body>
    </html>