Javascript – Cross-Browser JS/jQuery Copy current URL to Clipboard

clipboardcopyjavascriptjqueryurl

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.

Best Answer

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.