<input type="text" name="fname" onkeypress="return false;"
onkeydown="doCheck(event);" onpaste="return false;"/>
function doCheck(e) {
e = e ? e : window.event;
var keyCode = (e.which) ? e.which : e.keyCode;
if ((keyCode == 8) || (keyCode == 46) )
e.returnValue = false;
}
|