This technique is useful for Ajax-based applications and single Page applications when we want to avoid reloads of page navigation and we want to store the states on a single Page. Posted on 19th April 2010 — As we build more and more Ajaxy applications, and our apps reside on a single page, the browser’s native back button can get more and more broken. The code: A stack is a container of objects that are inserted and removed according to the last-in first-out (LIFO) principle. If you are simply trying to make sure a user does not navigate away, it may work for you, but it by no means the equivalent of trapping the “Back” button. How to capture the browser back button click event in jQuery and ,