Home > Web Front-end > JS Tutorial > Copy data to the clipboard through JavaScript in Firefox (Copy to Clipboard cross-browser version)_javascript skills

Copy data to the clipboard through JavaScript in Firefox (Copy to Clipboard cross-browser version)_javascript skills

WBOY
Release: 2016-05-16 17:13:02
Original
1646 people have browsed it

复制代码 代码如下:







CSS/Javascript demo



 


说明:Firefox的默认安全限制不允许通过JavaScript复制到剪贴板,需要提示用户修改Firefox的设置。修改方法是打开"about:config"将"signed.applets.codebase_principal_support"设置为"true"。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template