Webanizr Logo
Open / sluit menu
Module clipboard

The module clipboard copies data from a DOM node to the visitors clipboard.

webanizr.collect('clipboard', parameters, callback)

parameters

The collect method of clipboard accepts the following parameters.

id__dom (required)

The HTML id of the DOM node of which the content should be copied to the clipboard.

callback

The callback function that is called after the content is copied to the clipboard. The content that is copied is also passed to the callback function as:

{ text : <copied text> }

demo

https://cdn.cpmodules.webanizr.com/demo/clipboard/index.html