Good morning,
I am trying to make an innerHTML to an HTML that is not from which the function has been called. I hope that the code is better understood.
function ventana_cargada() {
var ventanaPadre = window.opener;
console.log(ventanaPadre);
document.getElementById("carga_completada").innerHTML = "<b>Ventana cargada correctamente.</b>";
}
The purpose of this is that I have opened a new window with "window.open", and I need to edit the HTML of the file that this case has opened this window. As you can see in the code I have managed to get the URL of the html that I want to edit with "window.opener" but now I do not know how to make the innerHTML function do it to the parent html file.
Thanks in advance!