I am trying to transfer a variable from one page using this code:
<a href="login.html" onclick="NameFunction('asdf');">Edit</a>
to the page login.html, and insert the variable(asdf in this example) to a textbox in the new page.
I have tried this code:
function NameFunction(name) {
    document.getElementById("username").value = name;
}
It is not working. I think it doesn't work because thats another page.
 
     
     
     
    