I want to make my webapp work like a mobile app. This means when a user presses back, they expect pops to close, not entire pages to change.
My end goal is to make it so when a modal opens the Back button will now close the modal and if they click it again it will go back.
I’ve tried several methods and although close they never respond consistently.
Anyone with a PROVEN working version of what Im looking for?