The following code suppresses the 'enter' key, when run in I.E. 5.5 or
later (Windows) but not when run in Safari (Mac)
<body onkeypress="jav ascript:keysupp ress(event)" >
function keysuppress(e)
{
if (e.type=="keypr ess" && e.keyCode=="13" )
{
event.returnVal ue=false
}
}
What code can I use to suppress the 'enter' key when running an app in
Safari?
Thanks.
later (Windows) but not when run in Safari (Mac)
<body onkeypress="jav ascript:keysupp ress(event)" >
function keysuppress(e)
{
if (e.type=="keypr ess" && e.keyCode=="13" )
{
event.returnVal ue=false
}
}
What code can I use to suppress the 'enter' key when running an app in
Safari?
Thanks.
Comment