window.addEventListener('copy', function copyintercept(e) { console.log(copyintercept.caller, 'copy action initiated'); e.stopImmediatePropagation(); }, true) document.addEventListener("contextmenu", bringBackDefault, true); function bringBackDefault(event) { event.returnValue = true; (typeof event.stopPropagation === 'function') && event.stopPropagation(); (typeof event.cancelBubble === 'function') && event.cancelBubble(); }