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

132
Views
Adding event handlers to dynamically created iframes through a content script

I have a Firefox extension that adds event listeners to all elements on a website through a content script:

document.addEventListener('click', function eventHandler(e) {
   // do something
})

This works fine in most cases, but the eventHandler function is not triggered when clicking on elements in dynamically created iframes, for example, the form on the right on https://www.deepl.com/contact-us?cta=whydeepl

The "all_frames": true flag in the manifest is set, and it is configured to match all URLs, so that shouldn't be the issue.

Is there a way to get this to work?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Solved: Just needed to set "match_about_blank": true in the manifest.

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!