I need to open a .html file upon password being entered correctly, the file is in the same folder. I have gotten most of it to work but it now says that my password function is not a function. Any help would be much appreciated
First. I hope you know this is not secure. Second, your issues is the fact that your element id/name and function names are the same. Change one of them.
Third, you only read the value when the page is loaded. It does not magically get updated, you need to read the value of the textbox inside of the function.