Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
138
rated 0 times [  143] [ 5]  / answers: 1 / hits: 45187  / 15 Years ago, mon, may 4, 2009, 12:00:00

I'm changing an IFRAME's src in order to reload it, its working fine and firing the onload event when its HTML loads.



But it adds an entry to the history, which I don't want. Is there any way to reload an IFRAME and yet not affect the history?


More From » html

 Answers
18

You can use javascript location.replace:



window.location.replace('...html');



Replace the current document with the
one at the provided URL. The
difference from the assign() method is
that after using replace() the current
page will not be saved in session
history, meaning the user won't be
able to use the Back button to
navigate to it.



[#99600] Wednesday, April 29, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
deonkalvinw

Total Points: 409
Total Questions: 96
Total Answers: 89

Location: Saint Pierre and Miquelon
Member since Sun, Nov 27, 2022
1 Year ago
deonkalvinw questions
Sun, Feb 6, 22, 00:00, 2 Years ago
Tue, Dec 28, 21, 00:00, 2 Years ago
Sun, Aug 22, 21, 00:00, 3 Years ago
Sun, Mar 7, 21, 00:00, 3 Years ago
;