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