fatto, va
grazie mille
posto il codice completo
codice:<html> <head> <style type="text/css"> #iframe { width: 600px; height: 600px; } </style> <script type="text/javascript"> function creaIframe(src) { var divinclude = document.getElementById("include"); var ilframe = document.createElement("iframe"); ilframe.setAttribute("src",src); ilframe.setAttribute("id","lore"); ilframe.setAttribute("name","lore"); divinclude.appendChild(ilframe); } function distruggiIframe() { var ilframe = frames["lore"].contentDocument; removed = iframe.parentNode.removeChild(ilframe); return removed; } function inserisci(testo) { document.getElementById('lore').contentDocument.getElementById('distruttore').value = testo; } </script> </head> <body onload="creaIframe('window.html')"> <div id="include"></div> <input onclick="creaIframe('window.html')" value="clicca"/> <input type="button" onclick="inserisci('blablabla')" value="cliccaaaa"/> </body>


Rispondi quotando