My suggestion, expanding on what they do, is to not to try to copy anything to the user's clipboard and instead highlight the content (I'd advise against the hidden textarea too though). On mobile devices especially, highlighting is still a bit of a pain with large amounts of text.
http://stackoverflow.com/questions/11128130/select-text-in-j...
Leave copying to the user. As an added benefit, you're not relying on browser hacks (IE only or otherwise) or flash.