How to run javascript/Jquery functions on user specific time scenario its so simple when i click HTML button the result will be show after 20 sec
<script>
function setTime(){
alert("Ok");
}
</script>
<input type ="button" onclick="setTime()" value="Click">
Jquery SetInterval,Delay function i don’t know how do i implement this please help me out or helps are definitely appreciated
Use
setTimeoutif you want to execute anything after certain delay and usesetIntervalif you want to execute some piece of code after every interval with some delay.In your case
setTimeoutfits the best. Try this.