Jump to content

access key


paramasivan

Recommended Posts

This is the check for ENTER script I use for one of my pages:

document.getElementById("SomeElement").onkeydown = CheckForEnter;function CheckForEnter(e){	var charcode;		if(!e)	{		e = event;	}		if(e.which)	{		charcode = e.which;	}	else	{		charcode = e.keyCode;	}	if(charcode == 13)	{		// ENTER WAS PRESSED...DO SOMETHING	}}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...