ciao
ho questo codicevorrei che al click del bottone il testo nella input cambiasse ma con il codice che ho scritto non vacodice:<html> <head> <style type="text/css"> #iframe { width: 600px; height: 600px; } </style> <script type="text/javascript"> function creaIframe(src) { var include = document.getElementById("include"); var iframe = document.createElement("iframe"); iframe.setAttribute("src",src); iframe.setAttribute("id","iframe"); iframe.setAttribute("name","iframe"); include.appendChild(iframe); } function distruggiIframe() { var iframe = document.getElementById("iframe"); removed = iframe.parentNode.removeChild(iframe); return removed; } function inserisci(testo) { var iframe = frames["iframe"]; iframe.getElementById("window").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>
mi potete aiutare?