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

后端 未结 15 2318
被撕碎了的回忆
被撕碎了的回忆 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:24

    for the people who don't want to use the whole jquery library i extracted the implementation in separate code. It's only 0,4 KB big.

    You can find the code, together with a german tutorial in this wiki: http://www.easy-coding.de/wiki/html-ajax-und-co/onload-event-cross-browser-kompatibler-domcontentloaded.html

提交回复
热议问题