应该是false没起到作用,我对js不熟,不清楚该怎么改…………

解决方案 »

  1.   

    f1.length==0----f1.length==""
    if 中0都改成""
      

  2.   

    <script language="javascript">
    function checkform()
    {
    var f3=form1.Tel.value;
    if(f3.length==0 )
    {
    alert("不能为空");
    form1.Tel.focus();
    return false;
    }
    return true;//加上这句试试
    }
    </script>
    <form name="form1" method="post" action="mailto.asp?o=go" onSubmit="return checkform();">
    <input name=Tel>
    <input type="submit" value=test>
    把所有的0改回来,我们看清题目。
      

  3.   

    我刚才试了部分代码,是不是其他的地方出现问题
    如定义的按钮类型为button了