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

160
Views
How to automatically click button inside iframe after load

I have an iframe and, inside the website in the iframe, there is a button that I want to be automatically clicked when the iframe load. This is the HTML code.

<div class="buttonnext action-button-container">
        <button type="button" id="nextBtn" class="action-button red0">
          <span id="nextBtn-final">
            CLICK TO PROCEED
          </span>
        </button>
</div>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

 /*   You can do it in this way.
    
     1. Get Iframe element
     2. Get the content window object and do a normal dom traversal to your button.
     3. Trigger the event. 
*/    
        var iframe = document.getElementById("iframe");
        var elmnt = iframe.contentWindow.document.getElementsById("nextBtn");
        elmnt.click();
about 4 years ago · Juan Pablo Isaza Report
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!