It's still the only way to get write access to the clipboard, unfortunately.
to_clipboard = (text) ->
textarea = document.getElementById "copy-workaround"
textarea.value = text
textarea.select()
document.execCommand "copy", false, null
In chrome for years.