The oncut event occurs when the user cuts the content of an element. Although
the oncut event is supported by all HTML elements, it is not actually
possible to cut the content of, for example, a <p> element, unless the
element has set contenteditable to "true". The oncut event is mostly used on
<input> elements with type="text".There are three ways to cut the content of
an element:
- Press CTRL + X
- Select "Cut" from the Edit menu in your browser
- Right click to display the context menu and select the "Cut" command.