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. 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. 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 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. 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). 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. Link to comment https://forums.phpfreaks.com/topic/31272-highlight-then-copy/#findComment-145290 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.