[英]Plain JavaScript execution in Firefox/Internet Explorer after browser navigation
In IE8, history navigation (back/forward) causes code to be executed on the onload handler. 在IE8中,历史记录导航(后退/前进)使代码在onload处理程序上执行。
How can I get Javascript in Firefox to also execute after a back or a forward? 如何在Firefox中使Javascript在后退或前进后也执行?
Thanks 谢谢
set window.onunload = function(){};
设置window.onunload = function(){};
after the execution of you onload handler. 在您执行onload处理程序之后。 See @fig-gnuton's answer in After travelling back in Firefox history, javascript won't run . 请参阅Firefox历史中的 @ fig-gnuton的回答。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.