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

119
Views
Js events not getting fired inside iframe content area

Iframe not firing clicks or any js event inside content area. I need to run given example by double clicking on content area of iframe, at the moment event can be click on border of iframe not inside content area

 <html>
    <body>
    <div>
        <iframe id="chart_output" ondblclick="alert('yes here')" srcdoc="<h1>HTML content</h1>">
        </div>
    </body>
    </html>

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

0

You don't have access to anything inside an iframe (for obvious security reasons) and vice versa, which means events fired inside the iframe get propogated, but not outside the iframe, which explains why no events inside get fired. Handle the events in the iframe, or don't use an iframe at all.

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!