Copy div from parent website to a textarea in iframe
In the Google Translator I've made a second instance of Google Translate with var makediv = document.createElement("secondinstance"); makediv.innerHTML = '<iframe id="iframenaturalID" width="1500" height="300" src="https://translate.google.com"></iframe>'; makediv.setAttribute("id", "iframeID"); var getRef = document.getElementById("gt-c"); var parentDiv = getRef.parentNode; parentDiv.insertBefore(makediv, getRef); And I'm trying to copy text from auto-correction of the first instance to the textarea of the second instance: I'm trying this (this code works if I just copy html within the Chrome