like i need to copy something to my clipboard by pressing a button. i can echo the value into a hidden form input field i guess. how can i get the value copied to clipboard?
SKANK!!!!!
5
Posting Pro in Training
Recommended Answers
Jump to PostYou can achieve this by writing a javascript function like below:
function copyToClipboard(s) { if( window.clipboardData && clipboardData.setData ) { clipboardData.setData("Text", s); } }
Jump to PostFirefox doesn't provide such coding ability.
All 7 Replies
mail2saion
14
Posting Whiz in Training
SKANK!!!!!
5
Posting Pro in Training
chandru7
-1
Junior Poster in Training
SKANK!!!!!
5
Posting Pro in Training
Troy III
272
Posting Pro
SKANK!!!!!
5
Posting Pro in Training
SKANK!!!!!
5
Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.