firefox BUG for innerHTML iframe TAG
<p>In the absence of the download is complete before using the innerHTML will cause pages to load iframe disorder </p>

<p>In the following example, the first Click "openA" (google page), then "openB" (yahoo page), and then "openA", then A window shown on the wrong yahoo page. </p>

<p>The BUG in chrome and IE does not exist under. </p>

<p>How to avoid this problem?</p>

<p>BUG example code:</p>

<pre><code>&lt;HTML&gt;
&lt;HEAD&gt;
&lt;script&gt;
function openA(){
    var winObj=document.getElementById("win_A");
    if(winObj==null){
     winObj=document.createElement('div');
     winObj.id="win_A";
     winObj.style.position="absolute";
     winObj.style.left="0";
     winObj.style.top="200";
     winObj.style.height="300";
     winObj.style.width="300";
     winObj.style.border="1px solid red";
     document.body.appendChild(winObj);
    }
    document.getElementById("win_A").innerHTML=("&lt;iframe src='http://www.google.com/'&gt;&lt;/iframe&gt;");
}
function openB(){
    var winObj=document.getElementById("win_B");
    if(winObj==null){
     winObj=document.createElement('div');
     winObj.id="win_B";
     winObj.style.position="absolute";
     winObj.style.left="350";
     winObj.style.top="200";
     winObj.style.height="300";
     winObj.style.width="300";
     winObj.style.border="1px solid red";
     document.body.appendChild(winObj);
    }
    document.getElementById("win_B").innerHTML=("&lt;iframe src='http://www.yahoo.com/'&gt;&lt;/iframe&gt;");
}
&lt;/script&gt;
&lt;/HEAD&gt;

&lt;BODY&gt;
    &lt;INPUT TYPE="button" VALUE="openA" ONCLICK="openA()"&gt;&lt;INPUT TYPE="button" VALUE="openB" ONCLICK="openB()"&gt;
    &lt;script&gt;document.write("&lt;iframe src=\"http://www.chaozh.cn/Iheeo_pic/200961017195991087.bmp?"+new Date()+"\"&gt;&lt;/iframe&gt;");&lt;/script&gt;
    &lt;INPUT TYPE="button" VALUE="Reload" ONCLICK="location.href=location.href;"&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;

&lt;/pre&gt;
</code></pre>
