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

209
Visualizações
I can't find a way to only show value when show an input from another html site with window.location.search

I have a school project where I want to be able to take an input from another forum site I have made, and then show this on my main HTML site.

I have a way to get the information from my forums site to my main with this cod on my HTML main site:

                    const input = window.location.search;
                    localStorage.setItem("fname", input);
                    
                    document.getElementById("demo").innerHTML = 
                    localStorage.getItem("fname");

ps getElementById "demo" is the id name for the output.

The problem here is that the visual output is: ?FNAME="input from my forum site" instead it should only show the input from my forum site. I have tried to use text.replaced but it ended up not showing anything at all.

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