JavaScript.. Document.write.. weird document behaviour:'(
问题 I'm getting some very weird behaviour:( i hope someone can help Using xmlhttp request im getting a javascript file with document. write and it looks something like this: document.write("<input type='hidden' name='orange' value='17' />"); document.write("<input type='hidden' name='apple' value='29' />"); I basically want to add those input elements in a form which is inside an iframe. // i get the document of the iframe var docc = doc.getElementById("rs-iframe").contentDocument; var body =