This attribute fires when the user cut or delete the content that has been present in the element. It is a Boolean type attribute. This attribute is supported by all HTML elements but it is possible for that element which has a ContentEditable attribute set to “true”.
Note:There are 3 ways to cut the content of an element:
- Press CTRL + X
- Select “Cut” from the Edit menu in your browser
- Right click and then select the “Cut” command
<element oncut = "script">
Attribute: This attribute is a part of event attribute and it can be used in any HTML elements. The script will be run when oncut attribute call.
Supported Browsers: The browser supported by oncut attribute are listed below:
- Google Chrome
- Internet Explorer
- HTML | DOM oncut Event
- HTML | <img> src Attribute
- HTML | <li> value Attribute
- HTML | <img> alt Attribute
- HTML | <map> name Attribute
- HTML | for Attribute
- HTML | dir Attribute
- HTML | min Attribute
- HTML | <a> rel Attribute
- HTML | low Attribute
- HTML | value Attribute
- HTML | reversed Attribute
- HTML | <area> rel Attribute
- HTML | <button> name Attribute
- HTML | <a> target Attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.