Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

121
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda