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