karimali831 Posted October 30, 2010 Share Posted October 30, 2010 Hi, This below script selects all text when you click. Is it possible to automatically copy the text to clipboard or use a button/link or something to show copy to clipboard? <script type="text/javascript"> function SelectAll(id) { document.getElementById(id).focus(); document.getElementById(id).select(); } </script> <input type="text" id="txtfld" onClick="SelectAll('txtfld');" style="width:200px" value = "This text you can select all" /> Thanks for any help Link to comment https://forums.phpfreaks.com/topic/217291-copy-to-clipboard/ Share on other sites More sharing options...
michaellunsford Posted November 5, 2010 Share Posted November 5, 2010 Here's a combo that works. It uses javascript if the feature is available, or flash if it's not. Easy. http://javascript.internet.com/forms/clipboard-copy.html Link to comment https://forums.phpfreaks.com/topic/217291-copy-to-clipboard/#findComment-1130532 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.