$(document).ready(function () { setTimeout(function() { console.log("refresh"); location.reload(); }, 2000); });