HTML oncut Attribute

❮ HTML Attributes


<input type="text" oncut="myFunction()" value="Try to cut this text!">


The oncut attribute specifies the script to be run when the user cuts the content of an element.

Standard Syntax

<element oncut="script">

Browser Support


Applies to:

The oncut attribute can be used on the following element:

Element Attribute
All visible elements. oncut

Attribute Values

Value Description
script Specifies the script to be run on oncut
❮ HTML Attributes