How do I make a JavaScript login form? : <p>I have a regular HTML form with a text field, which is for a password. The idea is that every user logs in with the same password, therefore there is only one password for the site.</p>

<p>I'm trying to make some JavaScript to check this password, and if it's the correct password, redirect to another page, meaning that anyone who knew their way around basic JavaScript/had common sense could figure out the password by looking at the source code (it's weird I know).</p>

<p>It's really hard to find a tutorial for this, probably because nobody would want to create a password that anyone could easily find out.</p>

<p>Thanks in advance for your help. Also, I know the title is a bit misleading; I couldn't figure out how to describe it in less than three sentences.</p>
