Forum Discussion

RenaMaguire-3b5's avatar
RenaMaguire-3b5
Community Member
3 years ago

Javascript solution for closing browser

I would like to create a message warning when users "x" out their browser. I've searched the boards, but the only solutions I can find seem to be outdated. They suggest altering HTML or Javascript code in the HTML files that I can't seem to find. I'm wondering if anyone has recently implemented something like this and can point me in the right direction. I would appreciate any insight!

Thanks in advance :)

  • JoeFrancis's avatar
    JoeFrancis
    Community Member

    "Outdated" because the browser manufacturers frown on you hijacking the end-user experience (remember the "porn storms," where you would close a browser window and 15 more would open up?)? Or something else?