JavaScript returns the difference between the code on the previous page:
window.history.go(-1); // On the back 1 page
window.history.back(); // On the back 1 page
// If you want to force the refresh: window.history.back();location.reload();
window.location.go(-1); // The refresh 1 page