How can I make the following code run only when the cursor is in one
text box and not in another?
<body onkeypress="jav ascript:keysupp ress(event)"
function keysuppress(e)
{
if (e.type=="keypr ess" && e.keyCode=="13" )
{
event.returnVal ue=false
}
}
This would be for I.E. 5.5 and later.
text box and not in another?
<body onkeypress="jav ascript:keysupp ress(event)"
function keysuppress(e)
{
if (e.type=="keypr ess" && e.keyCode=="13" )
{
event.returnVal ue=false
}
}
This would be for I.E. 5.5 and later.
Comment