When clicking a button that allows a popup to be shown where a user can put in information of some sort, but if the user decides to hit the browsers back button the popup will not disappear. It would still appear in front as in the background the pervious page is load. What are some ideas to insure that the popups will close when the user hits the browser’s back button. I don’t want to put the popup on timer as it doesn’t fit it’s use case by doing that.
Alas, generally speaking, single-page applications do not work well with the back button; as you might have noticed, when you right click a button to open in a new tab, that also does not work as intended.