Jump to content

compatibility problem with window.event.keyCode please healp!!


epic_era1

Recommended Posts

I'm having a compatibility problem with window.event.keyCode, I need it to be cross browsers compatible and can't get it to work on mozilla this is my function:

 

function noenter() {
if(count>0){
	if((window.event && window.event.keyCode == 13)){
	alert(count);
	document.access.submit();
	}
}
if(window.event.keyCode == 13){
count++;
  return !(window.event && window.event.keyCode == 13); 
}
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.