Hello, I am working on a school project. I have been trying for days for this to work but it seems as though I can't get it to work. I am trying to add of interactivity to a login.html page. I have a username, a password and a submit button. I wan't the page to go to a new URL when the right combination of username and password is entered. But it seems as though I can't get it to work.
Here is some of my code here
if(document.forms["login"]["usernameTB"].value==null || document.forms["login"]["passwordTB"].value==null)
alert("The username or password field must be filled out");