Copy and paste the selected text to the clipboard using JavaScript

后端 未结 4 443
灰色年华
灰色年华 2021-01-07 13:33

I\'m building a custom right-click menu for my system and I need to know how can I make a JavaScript function to copy the selected text, basically 100% like the original rig

4条回答
  •  春和景丽
    2021-01-07 14:02

    Modern Day Browsers block access to the clipboard. The user has to have the security setting correct.

    There are flash work-arounds, but they are not the best.

提交回复
热议问题