Click here to Skip to main content
12,696,493 members (30,924 online)
Click here to Skip to main content

Tagged as



keydown on document is not working when clicked on page?

, 7 Nov 2012 CPOL
I am using$(document).keydown(function (event) { alert(event.keyCode);});This function works great when the page is loaded..Now when i click on any part of the page and then when i press any key this event is not firing and alert does not come..Why?



Compare Revision Minor Date Status Editor
2 - publicly available No 6-Nov-12 22:07 Available Ravi Tuvar
Updates in content. 22 changes had been made.
1 No 6-Nov-12 22:06 Available Ravi Tuvar


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


About the Author

Ravi Tuvar
Technical Lead IntelliMedia Networks, Inc
India India
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170118.1 | Last Updated 7 Nov 2012
Article Copyright 2012 by Ravi Tuvar
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid