Click to See Complete Forum and Search --> : Copy To Clipboard??


notoriousjay
09-05-2003, 04:47 PM
I was wondering if there was any way I use the copy to clipboard script more than once on a webpage??

Code:
<SCRIPT LANGUAGE="JavaScript">

function ClipBoard()
{
holdtext.innerText = copytext.innerText;
Copied = holdtext.createTextRange();
Copied.execCommand("RemoveFormat");
Copied.execCommand("Copy");
}

</SCRIPT>


I posted the code if you don't recall... Can ya help?? Thanx

Jay

sciguyryan
09-06-2003, 01:53 AM
hi,


i belive you dont need to use the code multiple times but, you can call the function "ClipBoard()" multiple times throught
your web page.



hope that helped...