Allow Copy-Paste & Right-Click Test Suite
Inline Handler Blocking
Blocks right-click context menu using inline HTML event attributes: oncontextmenu="return false;" onmousedown="return false;".
Input Context-Menu Listener
Prevents context menu on an <input> element via JavaScript addEventListener("contextmenu").
Input Paste Event Blocking
Prevents pasting text into the input field using a JavaScript paste event listener.
Image Right-Click Listener
Blocks right-click on an <img> element via JS contextmenu listener.
Image Alert Popup Blocking
Triggers a window.alert() modal upon right-clicking an image and cancels the event.
Image CSS Pointer Events
Disables mouse pointer events directly on the image element using CSS pointer-events: none.
Overlay Mask + JS Blocking
Places a transparent <div> overlay over the image that intercepts and cancels right-click events.
Overlay Mask + CSS Pointer
Combines a transparent overlay container with CSS pointer-events: none on the underlying image.
SelectStart Event Blocking
Prevents starting text selection by intercepting and cancelling the DOM selectstart event.
Selection Range Clearing
Programmatically clears active text selections instantly using window.getSelection().removeAllRanges().
Keyboard Hotkey Interception
Blocks keyboard shortcuts like Ctrl+C / Cmd+C by listening to keydown modifier events.
CSS ::selection Concealment
Hides visual text selection highlights using CSS ::selection { background-color: transparent; }.
Input Field Overlay Mask
Prevents clicking, dragging, or right-clicking on an input element by covering it with a transparent overlay.
Input Length Delta Restriction
Restricts clipboard pasting by checking input length deltas on input events and reverting multi-character pastes.
HTML5 Canvas Overlay Protection
Renders graphics onto an HTML5 <canvas> element combined with CSS pointer-events: none and overlay masking.
CSS Background Image Context
Displays image content as a CSS background-image property instead of an <img> tag to suppress image context menus.