butten 的 onclick 事件为什么会执行2次?急
我写的.htm文件代码大致如下   
  <script   language= "vbscript "   type= "text/vbscript ">  
             dim   i 
             i   =   i   +   1 
             msgbox   i 
 End   Sub 
  </script>  
  <body>  
  <input   id= "Btn_Update "      type= "button "   value= "升级 "   onclick= "Btn_Update_onclick() "   style= "width:   83px "      />  
  </body>  
  </html>    
 每次点击按钮时都出现2次msgbox,为什么 
 请大家指点!
------解决方案--------------------没用过VBS,不过测试得出, 
 Sub Btn_Update_onclick 
     i = i + 1 
     msgbox i 
 End Sub 
 你这样写的意思是,让ID为Btn_Update的元素的onclick执行这个sub 
 然后你又从onclick里执行了一次它,所以是两次。 
 你可以这样测试。 
  <script language= "vbscript " type= "text/vbscript ">  
 dim i 
 Sub Btn_Update_onclick 
     i = i + 1 
     msgbox i 
 End Sub 
  </script>  
  <body>  
  <input id= "Btn_Update "  type= "button " value= "升级 " style= "width: 83px "  />  
  </body>  
  </html>  
 另VBS只兼容IE。。最好还是用JS。