By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,466 Members | 1,130 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,466 IT Pros & Developers. It's quick & easy.

HOWTO: capture onKeyUp on <body>

P: n/a
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

Oct 30 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Cartoper wrote:
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

Oct 30 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.