四个按钮onClick的时间调用不同的函数就可以啊

解决方案 »

  1.   

    调用四个函数处理,或者用onClick="javascript:window.open('default.asp','_self')"类似的事件进行处理!!!
      

  2.   

    如果改成4個button做,那有應該怎麼樣處理呀,
      

  3.   

    you can write it like this:   you must understand the submit button not only write the submit, you can write a commonly button, but you must write the commonly button Onclick event.
    example:
     <input type="button" name="b1" onclick="submitCheck('b1')">
     <input type="button" name="b2" onclick="submitCheck('b2')">
     <input type="button" name="b3" onclick="submitCheck('b3')">
     <input type="button" name="b4" onclick="submitCheck('b4')">in the javscript:
    <script language="javascript">
    function submitCheck(obj)
    {
        if (obj == "b1")
              ....
        else if (obj == "b2")
              ......
        ........
    }
    </script>you will solute the problem!