Refresh div every 30 seconds javascript code example Example: javascript refresh page every 30 seconds setTimeout(function() { location.reload(); }, 30000);