When page is refreshed, it generate the prompt message that text is copyed, but when trying to paste it via ctrl+v it returns nothing
<html> <head> <script> var clip = new ZeroClipboard(document.getElementById('my-button')); </script><br> </head> <body> <button id="my-button" data-clipboard-text="Copy me!">Copy to clip</button> <script> alert("copyed"); </script> </body>
Asked
Active
Viewed 89 times
0

mithun
- 1
- 3
-
1Do you want something like this ? http://stackoverflow.com/questions/24081277/detect-what-is-copied-from-webpage-with-jquery/24083504#24083504 – Joffrey Maheo Jul 17 '14 at 15:53
-
This might be a stupid question but did you include the ZeroClipboard? – Jonas Grumann Jul 17 '14 at 16:57
-
Take a look at the "simple example" https://github.com/zeroclipboard/zeroclipboard – Jonas Grumann Jul 17 '14 at 16:57