JavaScript returns the three methods and the differences described on the previous page

  • 2020-07-21 06:41:38
  • OfStack

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 

Related articles: