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

191
Visualizações
How can I make an iframe available to a form target attribute inside shadowRoot?

I am having a situation where I have to submit a form to populate an iframe.

<form action="" target="iframe_name" method="Post">
</form>
<iframe id="iframe_id" name="iframe_name"></iframe>

The problem is that everything is inside shadowRoot, so the target attribute from the form failes to find my iframe name.

There is the workaround, that would imply not using shadowRoot but I would rather use my existing structure if there is any way to make the iframe available for the target attribute to be found.

I also tried to search for a way to dynamically set the attributes for the form directly to the iframe, but from what I could find, the target attribute accepts only names, not DOM elements.

Thank you

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