Send a variable to a variable of a function?
<p>Let's say I have a function and one of the parameters is for the name of the target variable.. Would it be possible for me to send a variable to the function like this:</p>

<pre><code>function otherfunction(input){
...
}

function test {target) {
var x = 1;
target(x);
}

test(otherfunction);
</code></pre>

<p>The problem I have is that I'm making a greasemonkey script and one of the variable I need can't be returned from the function due to a limitation.. So this would be the alternative. I just don't know how to get it to work.. Any help would be much appreciated!!</p>
