variable in function - syntax

Giganews Newsgroups
Subject: variable in function - syntax
Posted by:  Marnix (no…@none.com)
Date: Tue, 29 Jul 2003

Hi

I know only little of javascript and have trouble with the syntax of a
function

this is the function

function ClipBoard( VARIABLE)
{
holdVARIABLE.innerText = VARIABLE.innerText;
Copied = holdVARIABLE.createTextRange();
Copied.execCommand("Copy");
}

probably needless to say, but it doesn't work.
How can i get this function to work?

thanks in advance,

Marnix

Replies