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

93
Views
How to add event to an element inside iframe as a third party

I am making a survey platform to host various google form link from user, I hope to detect when a user have submitted the survey. When I have done is I inframe the survey link and try to add an eventListener to the submit button with class e19J0b CeoRYc. However this failed as it is a cross-domain access.

function add_listen(){
            var button = document.getElementById("popup_preview").contentWindow.document.querySelector('.e19J0b.CeoRYc');
            button.addEventListener("click",SUBMIT);
        }

I have a function like this. Is there other way that I implement this feature? 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!