Set Button pauses 3 seconds is not available in many ways, here is a description of how the use of jquery is implemented
The code is as follows: <! DOCTYPE html> <html> <head> <title> My name is Lian lily</title> < Meta http-equiv= "Content-type" content= "text/html;" Charset=utf-8 "> <script src=" Http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js "> </script> <script type= "Text/javascript" > var times = 0 function Show (obj) { $ ("#btn_" +obj). attr ("Disabled", "disabled");/Set button unavailable times++; if (times = 2) { alert (obj); times = 0; $ ("#btn_" +obj). Removeattr ("disabled"); return; } //$ ("#frm" +obj). Submit (); nbsp SetTimeout ("Show (" +obj+ ")", 3000); } </script> </head> <body> <form action = ' post.php ' method= "post" name= "Frm1" id= "Frm1" > <input type= "button" Name= "btn_1" id= "Btn_" 1 "value=" submitted 1 "onclick=" Show (1) "/> </form> <form action = ' post.php ' method= ' Post ' NAMe= "Frm2" id= "Frm2" > <input type= "button" Name= "Btn_2" id= "btn_2" value= "Submit 2" onclick= "Show (2)"/> </form> </body> </html>