mofareh Posted October 1, 2025 Posted October 1, 2025 i have this code : procedure Tmob_emp.bCopyClick(Sender: TObject); begin UniSession.AddJS( 'var tempInput = document.createElement("textarea");' + 'tempInput.value = ' + QuotedStr(id_edit.Text) + ';' + 'tempInput.setAttribute("readonly", "");' + 'tempInput.style.position = "absolute";' + 'tempInput.style.left = "-9999px";' + 'document.body.appendChild(tempInput);' + 'tempInput.select();' + 'var successful = document.execCommand("copy");' + 'document.body.removeChild(tempInput);' + 'if (!successful) { alert("Cannot copy : ' + id_edit.Text + '"); }' ); end; the code is Copy the content of "id_edit" to Clipboard in android, but not work in iphone!!!!! there is any way to copy it to Clipboard?
Sherzod Posted October 2, 2025 Posted October 2, 2025 Hello, Have you tried looking for answers on the forum?
Recommended Posts