开发者

Plain JavaScript execution in Firefox/Internet Explorer after browser navigation

开发者 https://www.devze.com 2023-01-03 22:37 出处:网络
In IE8, history navigation (back/forward) causes code to be executed on the onload handler. How can I get Javascript in Firefox to also execute after a back or a forward?开发者_StackOverflow社区

In IE8, history navigation (back/forward) causes code to be executed on the onload handler.

How can I get Javascript in Firefox to also execute after a back or a forward?

开发者_StackOverflow社区

Thanks


set window.onunload = function(){}; after the execution of you onload handler. See @fig-gnuton's answer in After travelling back in Firefox history, javascript won’t run.

0

精彩评论

暂无评论...
验证码 换一张
取 消