Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
(document).keyup(function(e) {

  if (e.keyCode == 27) { window.location= "ClientManager.aspx"}   // esc
});

this is my code but its not working for me please help !!!!!
Posted
Comments
Bernhard Hiller 16-Oct-13 2:21am    
That's a bad idea. ESC is used for stopping the current loading of a page.
If I encounter such a bad behavior in a web site, I block it!
Sergey Alexandrovich Kryukov 16-Oct-13 2:33am    
Exactly. I would post it as a formal answer, just to close the issue.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900