<input type="button" name="add1" value="add1" onclick="add();">

解决方案 »

  1.   

    按钮的名字不能跟function的名字相同,更改即可
      

  2.   

    但是我如果去除
    <form name="upload" action="" method="post" target="iframe1">
    </form>也可以啊!!!
      

  3.   

    <script>
    function ad()
    { alert("here");
    }
    </script><table>
    <form name="upload" action="" method="post" target="iframe1">
    <tbody><tr><td><input type="button" name="add" value="add" onclick="ad();"></td></tr></tbody>
    </form>
    </table>
      

  4.   

    funove007(剑三十) 已经说出正解了, 即函数不能与控件同名
      

  5.   

    但是我如果去除
    <form name="upload" action="" method="post" target="iframe1">
    </form>也可以啊!!!