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

100
Visualizações
How to load pop-up ad inside an iframe

I'm implementing pop up ads for my site. The popup opens when clicked anywhere on the site except on iframe. Why does this happen? Sure iframe is separate from the entire website but why does it prevent a pop up from loading? Is there anyway to load pop-up ad inside an iframe i.e when someone press yt play button

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

YT will not allow anyone to use its play button with a event listener. So, you have to make a <div class="play"></div> make its position: absolute; and z-index: (any bigger value) and then put it in front of the play button and then if anyone tries to click on paly button of your video he will click on the div which will show a ad and when some closes the ad then make .play{ display: none;} and now your div will be removed so the person would be able to click on the play button and see the video.

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