ho risolto così:
div all'interno della pagine html che punta all'iframe uploadfile.html esterno:
codice js che sotituisce tutto il div:codice:<div style="display: block;" id="iframe"><iframe id="iframe_carica"src="uploadfile.html" frameborder="no" align="center" width="250" height="250"></iframe></div>
codice:divIframeHtml="<iframe id=\"iframe_carica\" src=\"uploadfile.html\" frameborder=\"no\" align=\"center\" width=\"250\" height=\"250\" ></iframe>"; document.getElementById('iframe').innerHTML=divIframeHtml;

Rispondi quotando