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

249
Visualizações
Is it possible to select a visible element on a page with javascript, if it is not in the page source?

I'm try to use javascript to select/auto submit a form that is visible on the page, but it is not in the HTML source of the page. I can see the submit button but there is no iframe or HTML for it in the source of the page. The form was generated with javascript. Is it possible to select this "element" (the submit button) if it isn't in the page source code?

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

0

Yes. It's possible.

As soon as the button element is inserted into the DOM, you can select it.

about 4 years ago · Juan Pablo Isaza Relatório

0

The source code will only show you the code it received from the server, everything that javascript does it happens after that and it's added to the DOM dynamically.

You can look at the developer tools on your browser (F12) and you would be able to inspect the javascript-created elements.

With that information you can select the form using its ID, class name or even the form itself. Not sure what framework you're using, of if it's plain vanilla Javascript. If you let me know which one I can provide some examples.

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