onkeypress, enter and iexplorer
- From: "Juan" <anacreonteFS@xxxxxxxxx>
- Date: 5 Dec 2005 07:06:43 -0800
Hello:
I'm having a problem with a simple javascript code that checks if the
enter key had been pressed or not. The code works propertly in mozilla,
but in iexplorer it only works one time, the second one the event isn't
throw any more, and I can't catch it.
Anyone can help me?
this is the sample code
function searchIntro(oEvent)
{
if (oEvento.keyCode)
iAscii = oEvent.keyCode;
else if (oEvent.which)
iAscii = oEvent.which;
else
return false;
if (iAscii == 13)
{
sendData();
}
}
<input type="text" id ="textBoxName1" name="CCO" size="69"
onkeypress="SearchIntro(event)"></tr>
Thanks a lot
.
- Follow-Ups:
- Re: onkeypress, enter and iexplorer
- From: Evertjan.
- Re: onkeypress, enter and iexplorer
- Prev by Date: Editor for javascript (supporting DOM2 also)
- Next by Date: javascript dhtml framework?
- Previous by thread: Editor for javascript (supporting DOM2 also)
- Next by thread: Re: onkeypress, enter and iexplorer
- Index(es):
Relevant Pages
|