August 16, 2012

onKeypress enter return false;

onKeypress enter return false;

function checkEnter(e){
var key;
if (window.event)
key = window.event.keyCode;
else if (e)
key = e.which;
var ret = ((key) != 13);
return ret;
}

Last updated: March 19, 2014