<div class="codetitle"> <span><a style="CURSOR: pointer" data="72951" class="copybut" id="copybut72951" onclick="doCopy('code72951')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code72951"> <br><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br><html xmlns="http://www.w3.org/1999/xhtml"><br><head><br><title>表单提交后按钮变灰</title><br><meta http-equiv="content-type" content="text/html;charset=gb2312"><br></head><br><body><br><!--把下面代码加到<body>与</body>之间--><br><form name="form1" method="post" action="http://www.jb51.net"><br><input type="text" name="username" value="zzsky"><br><input type="button" value="提交" onclick="<a href=http://www.jb51.net/js.html target=_blank >javascript</a>:{this.disabled=true;document.form1.submit();}"><br></form><br></body><br></html><br> </div>