https://crocsbootsbestcheapprice.blogspot.com/2022/10/alternative-jquery-library-to-triger.html
Alternative Jquery Library To Triger Beforeunload/unload Event