window.setTimeout how to reload another page code example Example: page reload timeout setTimeout(function(){ window.location.reload(1); }, 20000);