或者
<html>
<head>
</head>
<body><form name="form3" method="post" action="http://3333">
<input type="button" name="aa" value="aa" onclick="disButton()">
<input type="button" name="bb" value="bb" onclick="disButton()">
<input type="button" name="cc" value="cc" onclick="disButton()">
<input type="button" name="wahdee" value="submit2" onclick="disButton()">
<input type="button" name="website" value="提交" onclick="disButton()">
</form>
<script language="javascript">
function disButton()
{
var a = document.getElementsByTagName("input");
for(var i=0; i<a.length; i++)
{
  a[i].disabled = true;
//this.form.submit();
}
document.form3.submit();
}
</script>
</body>
</html>

解决方案 »

  1.   

    不能去掉, 我是需要提交表單的.TO redtank2005(菜鸟) : 有時候form的名字是動態的(不固定)....所以不能寫xxx.form3.submit~_~
      

  2.   

    <html>
    <head>
    </head>
    <body><form name="form3" method="post" action="http://3333">
    <input type="button" name="aa" value="aa" onclick="disButton(this.form)">
    <input type="button" name="bb" value="bb" onclick="disButton(this.form)">
    <input type="button" name="cc" value="cc" onclick="disButton(this.form)">
    <input type="button" name="wahdee" value="submit2" onclick="disButton(this.form)">
    <input type="button" name="website" value="提交" onclick="disButton(this.form)">
    </form>
    <script language="javascript">
    function disButton(str)
    {
    var a = document.getElementsByTagName("input");
    for(var i=0; i<a.length; i++)
    {
      a[i].disabled = true;
    //this.form.submit();
    }
    str.submit();
    }
    </script>
    </body>
    </html>
      

  3.   

    多谢 redtank2005(菜鸟) 大侠