<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Title</title> <mce:script type="text/javascript"><!-- function subt(){ document.getElementById('buttonId').disabled=true; //处理。。。 } // --></mce:script> </head> <body> <form action="" method="post"> <input type="button" value="button" id="buttonId" οnclick="subt();"/> </form> </body> </html> 注意disabled=true代码最好放在连接后台之前。 注意让button失效的代码是:disabled=true 2010-08-0708:51:02