How to disable <a onclick> when the user holds control
3 answers
The object eventhas a logical flag ctrlKey, so you can check this in your handler. It depends a little on your structure, but as a rule, if your handler returns false, then you will be “defeated” by clicking.
IE event (.. "window" ). . , :
function clickHandler(theEvent) {
theEvent = theEvent || window.event;
// ...
}
+5