jQuery:
$("img, a").on("dragstart", function(event) { event.preventDefault(); });JavaScript:
el.onmousedown = function (e) {
if (window.event.stopPropagation) window.event.stopPropagation();
window.event.cancelBubble = true;
e.cancelBubble = true;
}CSS:
img { pointer-events: none; }