I've been researching until I get tired ... what I'd like to do was something like:
var janela = window.open(
"https://www.google.com/",
"_blank"
);
var pesquisa = janela.document.getElementById("lst-ib");
pesquisa.value = "string que quero no input";
But it does not work, I put:
var janela = window.open(
"https://www.google.com/",
"_blank"
);
var pesquisa = janela.document.getElementById("lst-ib");
console.log(pesquisa);
printed null
WHY?
Anyone help me?