$(document).ready(function() { // Set interval in milliseconds; 5000ms = 5 seconds var N = 5000; setTimeout(function() { location.reload(); }, N); });