<!DOCTYPE HTML><HTMLLang= "en"><Head> <MetaCharSet= "UTF-8"> <title>Send Verification Code</title> <styletype= "Text/css"></style> <Script> varGo_time;//define a variable to accept the return value of the timer functionSetint_butt () {//Create an onclick time function //Define a timerGo_time=SetInterval ("Identifying ()", +); } var Time= -;//Define a time initial value functionidentifying () {//Get Time Label Object varNum=document.getElementById ("Num"); Num.innerhtml="<font color=red size=2 >"+ Time+"seconds after resend </font>"; //Get Button Label Object Properties varButt=document.getElementById ("Butt"); Butt.disabled= "Disabled"; --Time ; if( time<0){//determine the state of timenum.innerhtml= "";//Modify the status of Numbutt.disabled= "";//change the state of a button Time= -; //Restore the initial value of timeclearinterval (go_time);//Clear Timer } } </Script></Head><Body> <inputID= "text"type= "text"></input> <spanID= "num"></span>  <ButtonID= "Butt"onclick= "Setint_butt ()">Send Verification Code</Button></Body></HTML>
JavaScript simple some ....