navigator.clipboard.writeText not working on mobile
I have no idea why this doesn’t work:
navigator.clipboard.writeText(copyText.value) not work in mobile
I wrote a code to get param from php get method and copy it to clipboard in laptop and pc work fine, but I try many phones and it doesn’t work, notice that if I use a btn to click on it’s work but in case of auto call navigator.clipboard.writeText(copyText.value)
it does not work! my code is :
How to combine multiple Copy to Clipboard Functions?
I’m trying to figure out how to copy multiple Copy to Clipboard buttons into a single script.