Expanding this function to accomodate multiple items
I have the following bit of code:
<SCRIPT LANGUAGE="JavaScript">
function ClipBoard()
{
holdtext.innerText = copytext.innerText;
Copied = holdtext.createTextRange();
Copied.execCommand("Copy");
}
</SCRIPT>
I use it to copy items to the clipboard. It works great when I only have one piece of information to deal with (one "holdtext", one "copytext").
I want to expand the capabilities of this function in order to accomodate more than one piece of information. Something that will allow me to pass it an integer ("ClipBoard(1);", or "ClipBoard(100334);") instead of it dealing with just one.
thanks!
|