Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Javascript (http://www.velocityreviews.com/forums/f68-javascript.html)
-   -   HOWTO: capture onKeyUp on <body> (http://www.velocityreviews.com/forums/t933420-howto-capture-onkeyup-on-body.html)

Cartoper 10-30-2007 12:01 PM

HOWTO: capture onKeyUp on <body>
 
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 10-30-2007 12:38 PM

Re: HOWTO: capture onKeyUp on <body>
 
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



All times are GMT. The time now is 02:59 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.