settimeout(function() window.location.reload(1) 5000) code example Example: location reload after 2 seconds window.setTimeout(function(){location.reload()},3000)