Jarvis Jarvis - 1 year ago 120
HTML Question

Reload an IFRAME without adding to the history

I'm changing an IFRAME's

in order to reload it, its working fine and firing the
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?

Answer Source

You can use javascript location.replace:


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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download