Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

118
Visualizações
Open URL In New Tab and Set Input Value

I am working on a website at my job and we have run into an issue with our API vendors documentation being very much out of date and their support not being super helpful answering questions.

I was wondering if it is at all possible to open a URL in a new tab and then populate an input field in the code in the new tab.

The issue is the URL is not a site I have access to the code, which I am sure makes this impossible, but was curious if there way a way to at least try.

I have read about postMessage and Broadcast Channels but they both seem to need access to both code bases which I do not have.

What I have so far

So far my code is bound to a click event as such

    var newTab = window.open('URL', '_blank');
    var searchField = newTab.document;
    console.log(searchField);

I am trying to pass a data-value to an input on the page that opens in the new tab, but I do not have access to the code base for that site.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda