日期:2014-05-16 浏览次数:20547 次
<html> <head> <title>Test</title> <script> window.onload = function() { var btn = document.getElementById("btn"); btn.onclick = function() { btn.disabled = true; setTimeout(function() { btn.disabled = false; }, 5000); }; } </script> </head> <body> <form id="myForm" method="post" action=""> <input type="button" value="Submit" id="btn" /> </form> </body> </html>