Track when user hits back button on the browser

前端 未结 7 1188
陌清茗
陌清茗 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:08

    The Yahoo User Interface Library, my personal favorite client-side JS library, has an excellent Browser History Manager that does exactly what you're asking for.

提交回复
热议问题