Registration of the need to send a verification activation account of the mail, in order to avoid multiple messages repeatedly sent, so you can click on the Send, set button will be a period of time to continue to click. The following is a simple example:
Copy Code code as follows:
<title> Click to get the Verification code button after the button dimmed, the countdown after a period of time can be repeated click </title>
<body>
<input type= "button" id= "btn" value= "Free access to authentication code"/>
<script type= "Text/javascript" >
var wait=60;
function Time (o) {
if (wait = = 0) {
O.removeattribute ("Disabled");
O.value= "Free access to verification code";
wait = 60;
} else {
O.setattribute ("Disabled", true);
o.value=wait+ "seconds to Resend";
wait--;
settimeout (function () {
Time (O)
},
1000)
}
}
document.getElementById ("Btn"). Onclick=function () {time (this);}
</script>
</body>