|
.htaccess w/ javascript - the next step
Hi,
Two questions:
1) In order to get rid of the popup boxes that result from protecting an area on a site with .htaccess, I have created a form in HTML that uses javascript to pass the user variables. I have also created a 401 access denied page.
Everything works beautifully if you enter the correct password.
The problem is this:
If you enter the wrong password that darn popup box appears again asking you to enter your password again. If I enter the wrong password enough times in the popup box it will eventually bring me to the 401 screen I made.
But how do I get it to either skip the popup box and go directly to the 401, or give me another chance to enter my password on the HTML page, so you never get that popup box.
finally
2) How do I bring focus to the login button on my original form so you can just hit enter after typing in the password instead of manually having to move the mouse to click the button.
thanks in advance
|