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