Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

190
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!