Is there a cross-browser onload event when clicking the back button?

后端 未结 15 2259
被撕碎了的回忆
被撕碎了的回忆 2020-11-21 22:46

For all major browsers (except IE), the JavaScript onload event doesn’t fire when the page loads as a result of a back button operation — it only fires when the

15条回答
  •  隐瞒了意图╮
    2020-11-21 23:32

    jQuery's ready event was created for just this sort of issue. You may want to dig into the implementation to see what is going on under the covers.

提交回复
热议问题