Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
58
rated 0 times [  60] [ 2]  / answers: 1 / hits: 23924  / 14 Years ago, sat, august 21, 2010, 12:00:00

How do you make Firefox rerun javascript and reload the entire page when the user presses the back button? I was able to do this in all browsers except Firefox from the help of another SO question by adding this code:



history.navigationMode = 'compatible';
$(body).unload(function(){})


And also adding an iFrame... But this doesn't work in Firefox. Is there anything to do?


More From » html

 Answers
27

add this between your HEAD tags



<META HTTP-EQUIV=Pragma CONTENT=no-cache>
<META HTTP-EQUIV=Expires CONTENT=-1>

[#95857] Tuesday, August 17, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
declanm

Total Points: 614
Total Questions: 105
Total Answers: 97

Location: Dominica
Member since Sat, Nov 5, 2022
2 Years ago
;