0

I want to copy a text in iOS mobile webview

The text is being copied but the iOS keyboard is opening up

document.getElementById("code").select();
document.execCommand("copy");

How to solve this. Help appreciated

Akash Pai
  • 21
  • 5

1 Answers1

0

Copy to clipboard using Javascript in iOS This one helped me out mitrooooon.

Akash Pai
  • 21
  • 5
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-ask). – Community Sep 20 '21 at 16:24