Hey guys, it’s been a while since I last posted, but I suddenly (out of my own need) remembered there used to be some demand for a native “copy to clipboard” functionality in Xojo Web.
So, here’s my contribution.
CopyButtonWebExample.zip (8.8 KB)
Feel free to use it and improve it.
Cheers,
Román
2 Likes
Does it work in all major browsers and all platforms?
1 Like
Working fine in Chrome, and Firefox (in Windows). I don’t know about the others.
According to ChatGPT here’s the comaptibility list of navigator.clipboard.writeText
Right. That’s why I asked.
1 Like
Thanks for sharing this Román!
I’ve end up doing something similar:
CopyButton.zip (11.0 KB)
It should be compatible with ~95% browsers.
4 Likes