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.