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

108
Visualizações
difficulty getting data from an iframe

There's an extension which I need to extract data from, and currently the relevant data is copied by hand to a spreadsheet, whereas it'd be faster to copy the data to clipboard and paste as tab-delimited data directly into the spreadsheet.

However, the popup's classes can't seem to be found using getElementByClassName, nor can they be found by id.

This seems to be because they are in an iframe. From elsewhere on SO, I've tried getting the iframe object, and getting the .document attribute, .contentWindow.document, but neither have worked. I was thinking it might be because there is a #document in the html immediately following the iframe before the html starts?

The relevant HTML code looks like:

<iframe ...>
  #document
     <html ...>
<\iframe>

Many thanks for you help

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