I'm doing copy text when click on the button to copy the text from the text field. But not working on safari in Iphone This is my function
function myFunction() {
var copyText = document.getElementById("myInput");
copyText.select();
document.execCommand("copy");
}
Copy command works from iOS 10. I think you may not have the supported version. See here for browsers/iOS support Reference
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.