简体   繁体   中英

Get data from clipboard on paste with Javascript?

What kind of JS would be needed to implement functionality similar to this site? I only need it to get text from the clipboard when the user presses ctrl V, no fancy fetching data from raw filepaths or anything. Any libraries that do this? I just need a starting point, I couldn't find much by searching. Thank you.

As far as I know javascript does not directly support this functionality as it appears as a possible security issue. However you should be able to do this using Flash: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/Clipboard.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM