Skip to content Skip to sidebar Skip to footer

Wrong Content When Refresh A Page Contains Iframes In Ie

In a test page 'index.html' whose content: Test link

Solution 1:

You can add a (pseudo) random string to the end of the URL of your iframe.

Something like this:

var randValue = (newDate()).getTime();
wraps[i].innerHTML = '<iframe src="' + arr[r] + '.html?cache=' + randValue + '" frameborder="1" width="600" height="60"></iframe>';

Updated

It seems that IE is serving the content of the iFrames out of it's cache. If you check the network panel in IE it shows a HTTP status code 304.

You might want to look at this article Internet Explorer IFRAME Browser History Lost on Reload. This might give you a possible solution to your problem.

Post a Comment for "Wrong Content When Refresh A Page Contains Iframes In Ie"