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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.