I have used ZeroClipboard J-Query plug-in for copy to clipboard in web browsers which uses Flash. As for browser security reasons, copying is disallowed and we need Flash. But the ZeroClipboard copy functionality does not work in mobiles like iPhone, Android or iPad as we can't use flash there.
So is how to implement Copy to Clipboard functionality in mobiles like iPhone, Android or iPad ?
Possible Duplicate for this question is - Copy to Clipboard that also works on Mobile?
As there are not enough satisfying answers, I am posting this question again.
Thanks.
Android can cut, copy and paste text, and like a computer, the operating system transfers the data to the clipboard. Unless you use an app or extension like Clipper or aNdClip to retain your clipboard history, however, once you copy new data to the clipboard, the old information is lost.
We can use this to copy any text to the clipboard. First, we select the text to copy to the clipboard whether it is from a div or from an input box using document. getElementById() or any other suitable function. Then we store the value of that text in a variable and pass that variable as an argument to navigator.
There's not really a way to copy to the clipboard on iOS Devices from a web browser.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With