Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / October 2007



Tip: Looking for answers? Try searching our database.

HOWTO: capture onKeyUp on <body>

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cartoper - 30 Oct 2007 13:01 GMT
Is it possible to capture onKeyUp for a whole page?  If so, how?  I
tried adding the onKeyUp to the body element and it never is called.

Cartoper
Bart Van der Donck - 30 Oct 2007 13:38 GMT
> Is it possible to capture onKeyUp for a whole page?  If so, how?  I
> tried adding the onKeyUp to the body element and it never is called.

I'm not sure how your code looks like, but

 <body onKeyUp="alert('you pressed a key');">

should do the trick.

--
Bart
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.