Home > Article > Web Front-end > Solution to the blank problem when JS loads iFrame
Various strange problems occurred during the development process using the IE6 browser, which were very difficult. After a lot of effort, the problem was finally solved. I hereby share my problem description and solution on the Script Home platform to help friends who encounter this problem.
1. Blank appears when js loads iframe
iframeID 是加载的 Iframe ID号,修改成自己用的即可。 <iframe name="frames" id="iframeID" src=""/> setTimeout("document.frames['"+iframeID+"'].location.href='"+iurls+"';",0); //或 setTimeout("document.frames['"+iframeID+"'].location.reload();",0);
I think the first method is more appropriate. There is no need to judge the IE version. IE6 and The above versions can be executed smoothly and are only loaded once.
Some netizens said that under IE6, when the src of iframe is close to