How to disable <a onclick> when the user holds control.

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-04-15T19:42:10Z Indexed on 2010/04/15 19:53 UTC
Read the original article Hit count: 165

Filed under:
|
|

Usually, when people click on a link, I have onclick bound to it. And then return false.

When people click with "control", they expect a new page to open up. Therefore, I want to ignore the onclick AND/OR detect it. How do I do this?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about template