The Little Guy Posted December 19, 2006 Share Posted December 19, 2006 I know jack squat about javascript at the moment, so I would like to know if there is a way for me to do this:click on a text field, then the text in the text filed is highlighted, then copied to the clipboard.Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/31272-highlight-then-copy/ Share on other sites More sharing options...
artacus Posted December 19, 2006 Share Posted December 19, 2006 Nope, javascript purposely doesn't have that much control over the client's computer. Quote Link to comment https://forums.phpfreaks.com/topic/31272-highlight-then-copy/#findComment-144814 Share on other sites More sharing options...
The Little Guy Posted December 20, 2006 Author Share Posted December 20, 2006 are you sure? it works at http://photobucket.com Quote Link to comment https://forums.phpfreaks.com/topic/31272-highlight-then-copy/#findComment-144962 Share on other sites More sharing options...
artacus Posted December 20, 2006 Share Posted December 20, 2006 Using flock? That works because its a custom XUL application. Quote Link to comment https://forums.phpfreaks.com/topic/31272-highlight-then-copy/#findComment-144965 Share on other sites More sharing options...
The Little Guy Posted December 20, 2006 Author Share Posted December 20, 2006 If your talking the browser, then no (FireFox 2). Quote Link to comment https://forums.phpfreaks.com/topic/31272-highlight-then-copy/#findComment-144968 Share on other sites More sharing options...
fenway Posted December 20, 2006 Share Posted December 20, 2006 I know there's an IE-only setData() method. Quote Link to comment https://forums.phpfreaks.com/topic/31272-highlight-then-copy/#findComment-145290 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.