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

JavaScript and AJAX Forum

Detect ctrl+click with javascript

WebmasterWorld Senior Member 10+ Year Member

Msg#: 5485 posted 7:21 pm on May 26, 2006 (gmt 0)

Is it possible to detect any key modifiers in conjunction with a click through javascript? For example cntrl+click, or alt+click, or shift+click. I've had no luck looking around. Any ideas would be great.



WebmasterWorld Senior Member 5+ Year Member

Msg#: 5485 posted 5:55 am on May 28, 2006 (gmt 0)

Yes it is possible, I've done it.
Do a search for "Javascript key detection ctrl" and you will find some examples.

Edit. I think I misread the question, I was thinking of key press examples rather than clicking on links with a key depressed.
However it did bring up the following
which is probably what you are after.

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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved