![]() |
![]() |
#1 (permalink) |
Addict
Location: USA
|
Making Hotkeys
Hi,
I want to know how I can make it, so that in a webpage, you can press ... let's say the "n" key, which will bring you to http://www.yahoo.com. I know you can do this sort of thing using gmail (to compose new messages, reply to messages etc.) and I want that on my site too. Any help would be appreciated. |
![]() |
![]() |
#2 (permalink) |
Addict
|
not sure which programming language supports hot keys, or how it could be implemented without submitting to refresh the browser. Possibly an AJax http://en.wikipedia.org/wiki/AJAX solution might be found. I know this would be possible in flash using actionscripting.
|
![]() |
![]() |
#3 (permalink) |
Free Mars!
Location: I dunno, there's white people around me saying "eh" all the time
|
<input type="button" name="somebutton" accesskey="Q">
__________________
Looking out the window, that's an act of war. Staring at my shoes, that's an act of war. Committing an act of war? Oh you better believe that's an act of war |
![]() |
![]() |
#4 (permalink) | |
Addict
Location: USA
|
Quote:
![]() |
|
![]() |
![]() |
#5 (permalink) |
Free Mars!
Location: I dunno, there's white people around me saying "eh" all the time
|
Not sure actually, if you ask me, it's kinda bad HCI design to create a page that contains hotkeys that can be easily get hit accidentally and the user may get confused as to why the webpage has just changed to www.yahoo.com.
If you really want to, you could theorically speaking use JSP which would implment a keystroke listener, I can't really help you too much on that one since I haven't done that sort of thing.
__________________
Looking out the window, that's an act of war. Staring at my shoes, that's an act of war. Committing an act of war? Oh you better believe that's an act of war |
![]() |
Tags |
hotkeys, making |
|
|