How to refresh page with image showing when refreshing.. This doesn't work in IE :(
I have tried the below in Firefox and it works, but it doesn't in IE 7 and 8 -- the page refreshes but I don't get to see the image when refreshing in IE. Thanks in advance.
Javascript:
window.onload = show;
function show() {
document.getElementById("img444").style.display="none";
setTimeout("hide()", 5000); // 5 seconds
}
function hide() {
document.getElementById("img444").style.display="block";
window.location.reloa开发者_开发知识库d(false);
}
HTML:
<img id="img444" src="images/indicator.gif" style="display: none;"/>
Well i changed the code as per @gov's comment and it does work on IE7 and firefox.
So it should also work for you
精彩评论