Various strange problems arose during the development process of using IE6 browser, which is very difficult and hastily finally solved the problem. I hereby share my problem description and solutions to the Wulin.com platform to help those friends who encounter this problem.
1. The js loading iframe appears blank
iframeID is the loaded Iframe ID number, just modify it to use it yourself. <iframe name="frames" id="iframeID" src=""/> setTimeout("document.frames['"+iframeID+"'].location.href='"+iurls+"';",0);//or setTimeout("document.frames['"+iframeID+"'].location.reload();",0);I think the first method is more suitable. Without judging the IE version, IE6 and above can be executed smoothly and only loaded once.
Some netizens also said that when the src of the IE6 is close to the <iframe, there will be blanks, and I have not found any problems when I tested it.
2. Button click to submit form without response
The code copy is as follows:
setTimeout("form1.submit();",0);
It is also used to delay execution using setTimeout.
Here is how to improve iframe loading slow
The solution is as follows:
<iframe name="E" u="http://www.google.com" k="0" src="javascript: void(0)" onload="alert('Loading Completed')"></iframe><button onclick="aa('E')">google</button><script defer="">function aa(o_w){var _z=document.all(o_w);if (_z.k=='1') { alert('Page Loaded'); return; }_z.k='1';_z.src=_z.u;}</script>The above is all about this article, I hope it will be helpful to everyone!