Sorry for the lack of detail. Site is not hosted at this time.
I will try again. I have a logon form (logon.htm) that contains a Textbox,
Push Button (label = Enter Password) & and a Clear button (label is clear).
Simple as that.
Currently, you would enter the password in the text box and select the
button. The script does the rest. I want to modify it by allowing the user
to type in the password and simply press the enter key as another method to
validate the form. I tried to trap the enter key as shown, but it is not
working.
<FORM NAME="frmPasswo rd" onSubmit="retur n valForm()">
<input type=password name="txtInput" size="15" onkeypress="onE nter();" >
<input type="button" value="Enter Password" name="btnEnter"
onclick="valFor m();">
<input type="reset" value="Clear" name="btnClear" ></p>
function onEnter(){
if(event.keyCod e==13)
document.frmPas sword.btnEnter. click();
}
What is wrong with this?
"kaeli" <ti******@NOSPA M.comcast.net> wrote in message
news:MP******** *************** *@nntp.lucent.c om...
In article <k0************ *****@nwrddc03. gnilink.net>,
J.********@veri zon.net enlightened us with... How's come when I press the enter key, I can't get it to execute the
correct password.
It seems that I'm forced to press the button. I want to be able to do
both.
You're going to have be a lot more specific.
Got a url?
--
--
~kaeli~
A midget fortune teller who escapes from prison is a small
medium at large.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace