disablekeys.js 177 Bytes
Newer Older
Ad Schellevis's avatar
Ad Schellevis committed
1 2 3 4 5 6
function kH(e) {
	var pK = document.all? window.event.keyCode:e.which;
	return pK != 13;
}
document.onkeypress = kH;
if (document.layers) document.captureEvents(Event.KEYPRESS);