javascript oncut Description
oncut | Firefox/Netscape/NN n/a IE 5(Win) Chrome/Safari/DOM n/a |
|
Bubbles: Yes; Cancelable: Yes |
Fires after the user initiates the Cut command (via the Edit menu, a keyboard shortcut, or a context menu) to place a copy of the selected content into the system clipboard. To cut body content, the containing element must be in edit mode (see the shared contendEditable property). An event handler function for this event can supplement the cut action by placing additional data of your choice into the clipboardData object (which the onpaste event handler can read and handle as needed). |
|
To give users access to a Cut menu command for an otherwise uneditable element, set event.returnValue to false in the onbeforecut event handler for the same object as the oncut event handler. On the other hand, to prevent user cutting of body or form control content, set event.returnValue to false for the oncut event handler. |
|
Typical Targets | |
All rendered elements. |
[url="https://brainycoursework.com"]coursework in english[/url]
coursework support
Powered by Linode.