Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

208
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!