How can I copy to clipboard in HTML5 without using flash?

前端 未结 6 1322
一个人的身影
一个人的身影 2020-12-01 07:39

I want to use a copy-to-clipboard function in HTML5, but without using flash. Is it possible? How?

I tried to implement a copy-to-clipboad function with JavaScript,

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 08:13

    You can use the HTML5 clipboard api http://www.htmlgoodies.com/html5/other/working-with-clipboard-apis-in-html5-web-apps.html#fbid=eh9tM7GHJWF

    But do note that not all browsers fully support it as of now: http://caniuse.com/#feat=clipboard

提交回复
热议问题