paste

  • Revision slug: Web/Reference/Events/paste
  • Revision title: paste
  • Revision id: 452229
  • Created:
  • Creator: Dikrib
  • Is current revision? No
  • Comment clipboardData readonly

Revision Content

The paste event is fired when a selection has been pasted from the clipboard to the document.

General info

Specification
Clipboard
Interface
ClipboardEvent
Bubbles
Yes
Cancelable
Yes
Target
DefaultView, Document, Element
Default Action
None

Properties

{{OpenEventProperties}}{{UIEventProperties}} {{EventTableRow("clipboardData", "DataTransfer", "The contents of the clipboard. Not only text, but also files and images.", true)}} {{CloseEventProperties}}
{{CopyRelatedEvents()}}

Revision Source

<p>The <code>paste</code> event is fired when a selection has been pasted from the clipboard to the document.</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/#paste-event">Clipboard</a></dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Interface</dt>
  <dd style="margin: 0 0 0 120px;">
    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;">
    DefaultView, Document, 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>
<div>
  {{OpenEventProperties}}{{UIEventProperties}} {{EventTableRow("clipboardData", "DataTransfer", "The contents of the clipboard. Not only text, but also files and images.", true)}} {{CloseEventProperties}}</div>
<h2 id="Related_Events">Related Events</h2>
<div>
  {{CopyRelatedEvents()}}</div>
Revert to this revision