0

I'm trying to copy to clipboard using Javascript. With Internet Explorer it's possible using

 window.clipboardData.setData("Text", serialNumString);

Is there a similar way for copy to clipboard in Firefox and Chrome?

Jabberwocky
  • 48,281
  • 17
  • 65
  • 115
Kavitha P.
  • 155
  • 1
  • 2
  • 13
  • There is not a direct way to do it, you have to use an applet or flash that interact with the operating system's clipboard. You can try a javascript plugin at http://zeroclipboard.org/, but i didn't tested that yet . – Mayank Apr 23 '15 at 09:49
  • ok thanks. is there anyother way to do in controller side? – Kavitha P. Apr 23 '15 at 09:59
  • Is the copied value used only on the same domain, and needed to paste on the control from the same website it is copied from ? – Mayank Apr 23 '15 at 10:05

0 Answers0