javascript - Prevent browser from keeping iframe url when reloading the parent -


i have form inside iframe. user saved data redirect iframe page nothing more reloading main page (as other content depends on inserted inside iframe). data outside iframe ist updated , form should appear again.

the problem: @ least firefox (haven't tested in other browsers yet) keeps "new" url of iframe redirected page , not 1 set sourcecode. similar autocompletion input fields.

i reload

parent.location.reload(); 

is there maybe way force real reload without keeping information history of containing iframes?

btw: may use jquery if helps.

thanks.

you try along these lines (http://jsfiddle.net/akykz/):

document.queryselector('button').addeventlistener('click', function() {     document.queryselector('iframe').setattribute('src', document.queryselector('iframe').getattribute('src'));     window.top.location.reload();     return false; }, false); 

in fiddle, click link in iframe, , hit reload button. sounds you're reloading iframe, should @ least on right track.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -