1. <html> 
  2.  
  3. <head> 
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
  5. <title>表单点击提交按钮后变成灰色不可再次点击</title> 
  6. </head> 
  7.  
  8. <body> 
  9.  
  10. <form name=form1 method="POST" action="http://www.baidu.com" target=_blank> 
  11.  <p><input type="text" name="T1" size="20"><input type="button" value="提交" onclick="javascript:{this.disabled=true;document.form1.submit();}"> 
  12. <input type="reset" value="重置" name="B2"></p> 
  13. </form> 
  14.  
  15. </body> 
  16.  
  17. </html>