Disable onclick with CSS :: Possible?
You can do this.
pointer-events: none;
cursor: default;
more here
(Note that this is not accessible; it does not disable tabbing to the element and pressing "Enter"; the event will still fire in this case.)
In some browsers you can set pointer-events: none
, but that disables all mouse events not just clicks. See: https://developer.mozilla.org/en/CSS/pointer-events/