Track when user hits back button on the browser

前端 未结 7 1190
陌清茗
陌清茗 2020-11-28 10:56

Is it possible to detect when the user clicks on the browser\'s back button?

I have an Ajax application and if I can detect when the user clicks on the back button I

7条回答
  •  失恋的感觉
    2020-11-28 11:24

    The dojo toolkit has functionality to deal with this in javascript. I don't think there is any good way to handle it in pure PHP.

    Here is the docs page they have: http://dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dijit-and-dojo/back-button-undo

提交回复
热议问题