this question may sound stupid, but no one has ever taught me this. I have an HTML input for a password field, and you can only log on with one specific password with JS. Could someone please give me a syntax on assigning a variable to document.getElementById(""); syntax or a different syntax? Thanks.
I guess you are trying to use password in your page. If the purpose of registration is to confirm that the person exists and has supplied a valid email address then at the first instance you should email them a random password rather than having them choose their own and use it immediately.
In addition you may get a wealth of information about
HTML DOM Password Object here.