So basically I have a button and once that button has been clicked it will add an iframe code and it'll load it. I want to change the value of the input type text that has been loaded with the iframe.
I have managed to do this by typing this into the Chrome console:
document.querySelector("...").value = "new text"
but this only works when 'embed' is set from the JavaScript context menu on Chrome console.
How can I do it without that?
Image: setting to 'embed' on JavaScript context menu
I can not add any ids to the input etc.