Not TestedTesting not done, may not work properly
Clipboard & Sharing

Clipboard Events

Intercept copy, cut, and paste DOM clipboard events.

Checking support...
Advertisement

Interactive Input Workspace

Ready for input

Web API Execution Output

Result output will be displayed here after processing...

Native JavaScript Code Example (Zero Libraries)

document.addEventListener('paste', (e) => {
  const pastedText = e.clipboardData.getData('text');
});

About the Clipboard Events Web API

Listen to native copy, cut, and paste events triggered by user keyboard shortcuts or context menus.

Specification:W3C & WHATWG Web API Standard
Sponsored Content