if (strUsername == strCustomerOne && strPassword == strPasswordOne)
{
location.href = 'welcome.htm';
}
Basically, it won't open the welcome.htm file for me for some reason.
The HTML code is a web page that lets a person log in their username/password (in a form in the HTML). This statement, in Javascript, checks to see if the username/password is correct and (if it is) redirects them to the welcome.htm page.
{
location.href = 'welcome.htm';
}
Basically, it won't open the welcome.htm file for me for some reason.
The HTML code is a web page that lets a person log in their username/password (in a form in the HTML). This statement, in Javascript, checks to see if the username/password is correct and (if it is) redirects them to the welcome.htm page.