settimeout loader javascript code example
Example 1: javascript run something after x seconds
setTimeout(function(){
location.reload();
}, 3000); //run this after 3 seconds
Example 2: windows.load with settimeout
window.onload = function(){
setInterval(function(){
alert("Hello");
}, 10000);
};
Example 3: windows.load with settimeout
window.onload = function(){
setTimeout(function(){
alert("Hello");
}, 10000);
};