Javascript onClick function with parameters
<p>I have a Javascript function as below:</p>

<pre><code>function letMeGo(var1, var2, var3){
    if(var1 == 1 &amp;&amp; var2 == 1 &amp;&amp; var3 == 1){
        document.getElementById('goOn').href="goOn.php";
    }
}
</code></pre>

<p>the variables are the return of other functions.</p>

<p>And I need it to be triggered by:</p>

<pre><code>&lt;a id="goOn" onclick="letMeGo(var1, var2, var3)"&gt;Go On&lt;/a&gt; 
</code></pre>

<p>it is not working unless I removed the variable in both, the link and the function.
How can i get it to work with them?</p>
