|
|
Copy To Clipboard Function | ||
Discussion by pbolduc with 6 Replies.
Last Update: January 4, 2010, 9:48 am | |||
![]() |
|
|
Thanks in advance,
Pete
Here is the Javascript code:
CODE
function copy(text) {if (window.clipboardData) {
window.clipboardData.setData("Text",text);
}
}
And the button:
CODE
<input type="button" value="Copy To Clipboard" onclick="copy(document.your_form_name.your_textarea_name.value);">I'm not pretty sure but i guess that it only works with Internet Explorer 6, i don't test it with any other browser.
Check also this topic
Best regards,
sry I didn't thank you sooner but was on vacation
pete
QUOTE (TavoxPeru)
A time ago i need a script to do this action, and after some searching i found how to do it. You say that you have the code that.....
Link: view Post: 114933
Thanks!! I am just finding it! Javascript copy function! I wonder if it will notice user to press "OK"?
QUOTE (pbolduc)
Thanks man...sry I didn't thank you sooner but was on vacation
pete
Link: view Post: 115480
You are welcome, do you test it in Firefox????
Best regards,
QUOTE (takashiro)
Thanks!! I am just finding it! Javascript copy function! I wonder if it will notice user to press "OK"?Link: view Post: 115498
You are welcome, and the function will not notice the user to press "OK" or any other key.
Best regards,
Similar Topics:
Security Issue With Ctrl c copy On ...
One Click To Copy Script
Writing Functions In PHP
Fun With Javascript And Forms Lets have some fun with javascript! (2)
|
(1) When A User Close The Browser Window How to control this action
|
HOME 






