Confirming the close of a browser tab on exit. With Javascript codes.