JavaScript Question - 11/25/2001 15:20:00
I am using a JavaScript to allow users to log in to a directory protected by .htaccess using a form ona page which requests username and password, so bypassing the ugly grey default .htaccess login box. The script is here btw: http://javascript.internet.com/navigation/htaccess-login.html
It works just fine but I would like to alter it slightly so that instead of a user, on submitting a bad username and/or password, getting a typical JavaScript alert, they are redirected to a specified page. The relevant line is: else { alert("Please enter your username and password."); } How do I make the 'else' a redirect to a specified page? ------------------ Katherine
InKK Design LinKKs - Kilkenny's Online Magazine -*-*-*-*-*-*-*-*-*-* "Dogs have owners, cats have staff!"
[This message has been edited by abbeyvet (edited 11-25-2001).]
|