Window History: 0
Customizeable

#2. Intercept back using popstate event

Takeout the user interactivity and straight to the implementation

ref: https://stackoverflow.com/questions/57339098/chrome-popstate-not-firing-on-back-button-if-no-user-interaction

Disclaimer

  1. The flow of using before pop state has the best appearance so far and works as charm
  2. It's even able to customize the popup dialog
  3. The downsides is that, it will not work if the page is opened directly

Compatibility

ChromeSafari