homepage Welcome to WebmasterWorld Guest from 54.196.24.103
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
keyboards in javascript
McIntyre




msg:1471175
 4:47 pm on Apr 30, 2003 (gmt 0)

I'm working on a website in which it would be useful for an event to happen when a user pressed a specific key (i.e. one of the arrow keys) as oppose to simply "onkeypress" for any key. Is there any way I can get the browser to recognise which key the user has pressed?
Thanks.

 

toadhall




msg:1471176
 5:40 pm on Apr 30, 2003 (gmt 0)

Apparently onkeydown will accept a cursor key press, but you're limited to IE.

Google [google.com]

T

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved