The cut, copy, and paste events fire when the user cuts, copies or pastes a text or image.
| Method or property | IE 5.5 | IE 6 | IE 7 | IE8b1 | FF 2 | FF 3 | Saf 3.0 Win | Saf 3.1 Win | iPhone 3G | Opera 9.26 | Opera 9.51 | Konqueror 3.5.7 | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
On the window
|
No | No | Too many | No | Untest |
No | No | |||||||
|
||||||||||||||
|
On the document
|
No | No | Too many | Yes | Untest |
No | No | |||||||
|
||||||||||||||
|
On forms
|
Yes | No | Too many | Yes | Untest |
No | No | |||||||
|
||||||||||||||
|
On text inputs
|
Yes | No | Too many | Yes | Untest |
No | No | |||||||
|
||||||||||||||
| Method or property | IE 5.5 | IE 6 | IE 7 | IE8b1 | FF 2 | FF 3 | Saf 3.0 Win | Saf 3.1 Win | iPhone 3G | Opera 9.26 | Opera 9.51 | Konqueror 3.5.7 | ||
|
On images
When you go to the context menu and select 'Copy image' or a similar command. |
Yes | No | No | Untest |
No | No | ||||||||
|
On any element
In general only the copy event should be available, since it's not possible to cut or paste text from or to, say, a paragraph. |
Yes | No | Too many | Yes | Untest |
No | No | |||||||
|
||||||||||||||
|
Prevent default
The point of these events: can you prevent a cut, copy or paste action from taking place? |
Yes | Untest |
Yes | Yes | Untest |
Untest |
Untest |
|||||||
|
Event bubbling
These events should bubble up. |
Yes | Untest |
Yes | Yes | Untest |
Untest |
Untest |
|||||||
|
Cancel bubble
|
Yes | Untest |
Yes | Yes | Untest |
Untest |
Untest |
|||||||
| Method or property | IE 5.5 | IE 6 | IE 7 | IE8b1 | FF 2 | FF 3 | Saf 3.0 Win | Saf 3.1 Win | iPhone 3G | Opera 9.26 | Opera 9.51 | Konqueror 3.5.7 | ||
Firefox 3 has a lazy implementation: it fires these events whenever the user presses the Cut, Copy, or Paste shortcut keys, whether that action makes sense in a given context or not.
For instance, when you press [Ctrl | Cmd]+X while the focus is nowhere in particular and you have not selected any text, Firefox will fire a cut event, even though there's nothing to cut.
IE and Safari check if something is actually cut, copied or pasted before firing the events.
| Event | IE 5.5 | IE 6 | IE 7 | IE8b1 | FF 2 | FF 3b5 | Saf 3.0 Win | Saf 3.1 Win | Opera 9.26 | Opera 9.5b | Konqueror 3.5.7 | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
beforecopy
|
Yes | No | No | Yes | Untest |
No | No | |||||||
|
I do not understand the real purpose of these events. However, when the user calls up a context menu that contains cut, copy and paste actions, beforecut, beforecopy and beforepaste all fire. |
||||||||||||||
|
beforecut
|
Yes | No | No | Yes | Untest |
No | No | |||||||
|
See beforecopy. |
||||||||||||||
|
beforepaste
|
Yes | No | No | Incom |
Untest |
No | No | |||||||
|
See beforecopy.
|
||||||||||||||
| Event | IE 5.5 | IE 6 | IE 7 | IE8b1 | FF 2 | FF 3b5 | Saf 3.0 Win | Saf 3.1 Win | Opera 9.26 | Opera 9.5b | Konqueror 3.5.7 | |||