Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Click div & copy code to pasteboard? Re: Click div & copy code to pasteboard?

#120053
dfogge
Participant

chris is correct. due to security issues javascript doesnt have direct access to the OS clipboard.

in the past i’ve used this plugin: https://sites.google.com/site/yangshuai10/jquerycopyplugin

note that it also requires flash, but is really easy to implement.