7

How can I get the clipboard data on click on a button.. not on pasting into textarea.

Something like this :

<button onclick="seeClipBoard">Click to see your clipboard data</button>

<div id="seeData"></div>

var seeClipBoard = function() {
    var data = ****************** ;
    $("#seeData").html(data);
};

I d'ont want to use the paste event, but a click

Thank you!

user3134277
  • 347
  • 4
  • 14
  • 5
    How is this a duplicate? He clearly said "click", not "paste". The question linked to does not address user3134277's question. – Jimmy He Jan 19 '17 at 23:01

0 Answers0