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
onload
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.