set time in js code example Example: settimeout jquery setTimeout(function(){ alert("Hello"); }, 3000);