Skip to main content
Full phrases as titles help find the right questions in search results more quickly.
Source Link
Sebastian Simon
  • 19.8k
  • 8
  • 61
  • 88

Cross Is there a cross-browser onload event andwhen clicking the Backback button?

For all major browsers (except IE), the JavaScript onloadonload event doesn'tdoesn’t fire when the page loads as a result of a Backback button operation - it — it only fires when the page is first loaded.

Can someone point me at some sample cross-browser code (Firefox, Opera, Safari, IE ..., …) that solves this problem? I'mI’m familiar with Firefox's pageshowFirefox’s pageshow event but unfortunately neither Opera ornor Safari implement this.

Cross-browser onload event and the Back button

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 page is first loaded.

Can someone point me at some sample cross-browser code (Firefox, Opera, Safari, IE ...) that solves this problem? I'm familiar with Firefox's pageshow event but unfortunately neither Opera or Safari implement this.

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

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 page is first loaded.

Can someone point me at some sample cross-browser code (Firefox, Opera, Safari, IE, …) that solves this problem? I’m familiar with Firefox’s pageshow event but unfortunately neither Opera nor Safari implement this.

Question Protected by CommunityBot
deleted 11 characters in body
Source Link
Lightness Races in Orbit
  • 386.8k
  • 77
  • 670
  • 1.1k

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 page is first loaded.

Can someone point me at some sample cross-browser code (Firefox, Opera, Safari, IE ...) that solves this problem? I'm familiar with Firefox's pageshow event but unfortunately neither Opera or Safari implement this.

Thanks!

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 page is first loaded.

Can someone point me at some sample cross-browser code (Firefox, Opera, Safari, IE ...) that solves this problem? I'm familiar with Firefox's pageshow event but unfortunately neither Opera or Safari implement this.

Thanks!

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 page is first loaded.

Can someone point me at some sample cross-browser code (Firefox, Opera, Safari, IE ...) that solves this problem? I'm familiar with Firefox's pageshow event but unfortunately neither Opera or Safari implement this.

Source Link
Bill
  • 4.4k
  • 8
  • 31
  • 32

Cross-browser onload event and the Back button

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 page is first loaded.

Can someone point me at some sample cross-browser code (Firefox, Opera, Safari, IE ...) that solves this problem? I'm familiar with Firefox's pageshow event but unfortunately neither Opera or Safari implement this.

Thanks!