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

97
Visualizações
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
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