Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

211
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda