0

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?

Thanks

Marcel Korpel
  • 21,536
  • 6
  • 60
  • 80

1 Answers1

0

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.

Community
  • 1
  • 1
Babiker
  • 18,300
  • 28
  • 78
  • 125
  • Cheers, that did it! Sorry about the dupe, my search did not find it. –  Jun 20 '10 at 21:27