setting timeout in javascript code example Example: settimeout jquery setTimeout(function(){ alert("Hello"); }, 3000);