JSREF
onpageshow Event
Execute a JavaScript when a user navigates to a webpage: