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

188
Visualizações
Is there a way to change the page using JavaScript without resetting the browser console?

So I want to get HTML elements from multiple pages using JavaScript.

However, as soon as I redirect the user to another page using location.href = "https://www.example.com", the developer console reloads.

Is there a way to prevent this?

EDIT

While sojin's answer shows a way to preserve the text being output, I can't find a way to keep the code, that was input to run after the redirect, running.

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

0

enter image description here

You can keep the log by preserving the log in "Chrome"

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