Necesito pasar un valor del padre al iframe usando javascript, pero ambos están en un dominio diferente.
Intenté usar lo siguiente, pero aún no puedo lograrlo. Después de pasar el texto, necesito enviar la tecla Intro para ir a la página siguiente.
<!DOCTYPE html> <html> <body> <iframe id="myFrame" src="https://sitechecker.pro/iframe-test/" style="height:380px;width:100%"></iframe> <button onclick="myFunction()">Try it</button> <script> function myFunction() { var iframe = document.getElementById("myFrame"); var elmnt = iframe.contentWindow.document.getElementsById("minitool_input")[0]; elmnt.innerHTML = "http://google.com"; } </script> </body> </html>