<div class="codetitle"> <span><a style="CURSOR: pointer" data="72951" class="copybut" id="copybut72951" onclick="doCopy('code72951')"><u>Copy code</u></a></span> The code is as follows:</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>The button turns gray after the form is submitted</title><br><meta http-equiv="content-type" content="text /html;charset=gb2312"><br></head><br><body><br><!--Add the following code between <body> and </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="Submit" 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>