In JavaScript, the cut event fires when the user starts a cut action through the browser UI (MDN). The default action copies the selection to the clipboard and removes it from the document.
Register a listener with addEventListener. Check readiness and browser support before you rely on this event.
Syntax
Listen for cut. Start with this line.
JavaScript
addEventListener("cut", fn)
Call
What it does
addEventListener("cut", fn)
Primary signature.
Built into the browser. Listen with el.addEventListener("cut", …) — no import required.
Library declarations
JavaScript
addEventListener("cut", fn)
Parameters
Parameter
Description
Event name
Required. "cut"
Handler prop
Optional. oncut
Return Value
Return Value
Description
*
Fires as an Element event (listener receives the Event object).
JavaScript Examples
Example 1 — Cut Selection as Uppercase (MDN)
Rewrite clipboard text, delete the selection, then cancel the default.
Target one control. Only that element’s cut default is canceled.
Call preventDefault(). Stops clipboard write and removal.
Text stays put. That is the intentional side effect of canceling cut.
Not DRM. Users can still copy via other means — treat as UX control.
Compatibility
Browser Support
Elementcut is Baseline Widely available (MDN: since July 2015). Safe to use in modern and older evergreen browsers.
✓ Baseline · Widely available
cut
Fires when the user initiates a cut action through the browser UI.
99%Widely available
Google ChromeAll versions · Desktop & Mobile
Full support
Mozilla FirefoxAll versions · Desktop & Mobile
Full support
Apple SafariAll versions · macOS & iOS
Full support
Microsoft EdgeAll versions · Chromium & Legacy
Full support
Internet ExplorerIE 6+ · Legacy environments
Full support
OperaAll modern versions
Full support
cutExcellent
Bottom line: Customize with setData + deleteFromDocument + preventDefault. Remember: canceling cut also cancels the automatic removal of the selection.
Frequently Asked Questions
It fires when the user starts a cut action through the browser UI (for example Ctrl+X / Cmd+X or Edit → Cut). The default action copies the selection to the clipboard and removes it from the document (MDN).
No. MDN marks Element cut as Baseline Widely available (since July 2015). It is not Deprecated, Experimental, or Non-standard.
A ClipboardEvent. The important property is clipboardData, which you can write to with setData(format, data).
Cancelling the default also stops the browser from removing the selection from the document. If you still want a cut-like result, call selection.deleteFromDocument() yourself after setData (MDN).
Yes. The cut event can still fire, but the event object may contain no clipboard data when the content is not editable (MDN).
No. Like copy, a cut handler cannot read clipboard data. You can write with setData after cancelling the default action.