A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent/ClipboardEvent below:

ClipboardEvent: ClipboardEvent() constructor - Web APIs

ClipboardEvent: ClipboardEvent() constructor

Baseline Widely available

The ClipboardEvent() constructor returns a new ClipboardEvent, representing an event providing information related to modification of the clipboard, that is cut, copy, and paste events.

Syntax
new ClipboardEvent(type)
new ClipboardEvent(type, options)
Parameters
type

A string with the name of the type of the ClipboardEvent. It is case-sensitive and browsers set it to copy, cut, or paste.

options Optional

An object that, in addition of the properties defined in Event(), has the following properties:

clipboardData Optional

A DataTransfer object containing the data concerned by the clipboard event. It defaults to null.

dataType Non-standard Optional

A string containing the MIME-type of the data contained in the data argument. It defaults to "".

data Non-standard Optional

A string containing the data concerned by the clipboard event. It defaults to "".

Return value

A new ClipboardEvent object.

Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4