jqurey refresh whole page code example
Example: how to completely reload page in jquery
// reload page from cache:
location.reload();
// reload page from server:
location.reload(true);
// reload page from cache:
location.reload();
// reload page from server:
location.reload(true);