Can user copy link to clipboard in mobile safari?

  • 0
    There is a link to another page. I want the link to be copied to the user's clipboard when the button is clicked. It works in Safari on MacBook, but not on iPhone. I am using execCommand ("copy"). And most importantly, when I call alert (document.queryCommandSupported it comes out true.
    Thank you very much!
    JavaScript Fynn McCall, Dec 13, 2020

  • 1 Answers
  • 0
    I suggest connecting some JS plugin, for example this https://clipboardjs.com/
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!