copy

  • Revision slug: Web/Reference/Events/copy
  • Revision title: copy
  • Revision id: 464569
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

The copy event is fired when a selection has been added to the clipboard.

General info

Specification
Clipboard
Interface
{{domxref("ClipboardEvent")}}
Bubbles
Yes
Cancelable
Yes
Target
{{domxref("DefaultView")}}, {{domxref("Document")}}, {{domxref("Element")}}
Default Action
None

Properties

{{OpenEventProperties()}}{{CloseEventProperties()}}

{{CopyRelatedEvents()}}

Revision Source

<p>The <code>copy</code> event is fired when a selection has been added to the clipboard.</p>
<h2 id="General_info">General info</h2>
<dl>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Specification</dt>
  <dd style="margin: 0 0 0 120px;">
    <a class="external" href="http://www.w3.org/TR/clipboard-apis/#copy-event">Clipboard</a></dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Interface</dt>
  <dd style="margin: 0 0 0 120px;">
    {{domxref("ClipboardEvent")}}</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Bubbles</dt>
  <dd style="margin: 0 0 0 120px;">
    Yes</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Cancelable</dt>
  <dd style="margin: 0 0 0 120px;">
    Yes</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Target</dt>
  <dd style="margin: 0 0 0 120px;">
    {{domxref("DefaultView")}}, {{domxref("Document")}}, {{domxref("Element")}}</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Default Action</dt>
  <dd style="margin: 0 0 0 120px;">
    None</dd>
</dl>
<h2 id="Properties">Properties</h2>
<p>{{OpenEventProperties()}}{{CloseEventProperties()}}</p>
<h2 id="Related_Events">Related Events</h2>
<p>{{CopyRelatedEvents()}}</p>
Revert to this revision