Ok. What I have an html page that has a few text boxes and a submit button. When the submit button is clicked, I have a function that checks the stuff in the boxes. Given a certain condition of the text within the textboxes, I would like to redirect the browser to another page. OnClick, this function is called:
function login(u,p)
{
var string = "3xq";
if(u+string == p )
{
window.location.href = "http://www.yahoo.com";
}
}
The page is never redirected. I cannot understand why this does not work. I know that the function is properly called and that the checks are true. Any help? Thanks -Chris
function login(u,p)
{
var string = "3xq";
if(u+string == p )
{
window.location.href = "http://www.yahoo.com";
}
}
The page is never redirected. I cannot understand why this does not work. I know that the function is properly called and that the checks are true. Any help? Thanks -Chris