1

I've been exploring ways to have a button to copy the current URL to the user's clipboard that is cross-browser compatible, but doesn't require Flash. I thought there would be a jQuery or vanilla JavaScript solution, but haven't come across anything yet.

I've found solutions like Zero Clipboard (http://code.google.com/p/zeroclipboard/) but it uses a Flash movie file.

Is there no way around utilizing Flash if it's cross-browser compatible.

Keefer
  • 2,189
  • 5
  • 31
  • 49
  • 3
    For security reasons, I don't think its possible: http://stackoverflow.com/questions/127040/copy-put-text-on-the-clipboard-with-firefox-safari-and-chrome – Chad Jan 31 '12 at 14:42
  • So with that being said, what's the best cross-browser way to grab the URL? Is it Zero Clipboard? – Keefer Jan 31 '12 at 15:21

1 Answers1

4

From what I have read its not possible.

Also according to some research (here, here), Zero Clipboard seems to be the way people are going about doing this.

Community
  • 1
  • 1
Chad
  • 17,852
  • 4
  • 44
  • 70
  • Though that site now says "Development Has Ceased On Zero Clipboard" so use at at your own potentially lack of future-proofing risk :-) – Steve Nov 23 '12 at 16:17