Best thing is to use conditional comments.
HTML Code:
<--![if IE 7]><script type="text/javascript" src="ie7refresh.js"></script><![endif]-->
Then in ie7refresh.js:
Code Javascript:
window.attachEvent('onload', refresh);
function refresh() {
document.body.onclick = function() {
if (window.event.target.nodeName == 'A') return;
else window.location.reload(true);
}
}
That will make it reload from the server each time. If reloading from the cache is OK, use window.location.reload() instead of the above with "true" as a parameter.
Bookmarks