C
Coder
Hi,
I wanted to know of a way that I can put text into the Office
(Outlook/Word) clipboard from Internet Explorer.
So when a user a user clicks on a button, some text is placed into the
clipboard.
Ive tried this, but no luck.
<script language="javascript">
function cpy(myString){
if((typeof window.clipboardData != 'undefined')&&
(window.clipboardData.setData)){
alert('setting: ' + myString);
res = window.clipboardData.clearData();//("text",myString);
alert(res);
}
else {
alert('null');
}
}
</script>
- Thanks.
I wanted to know of a way that I can put text into the Office
(Outlook/Word) clipboard from Internet Explorer.
So when a user a user clicks on a button, some text is placed into the
clipboard.
Ive tried this, but no luck.
<script language="javascript">
function cpy(myString){
if((typeof window.clipboardData != 'undefined')&&
(window.clipboardData.setData)){
alert('setting: ' + myString);
res = window.clipboardData.clearData();//("text",myString);
alert(res);
}
else {
alert('null');
}
}
</script>
- Thanks.