We currently have a JS that popups a window whenever the visitor wants to leave the site. It works fine, except when hitting the back button on the browser, it popups up the alert even if we are on the site.
we want to fix this.
-we do not want to disable the back button
-we do not want to erase the historial