Suppose I have a function
function foo(a, b, c)
{
// ...
}
that I want a button to call. I know that the way to call foo if it were a parameterless function would be
onclick="foo()"
but what is the way to do it when the function has parameters? Is it simply
onclick="foo(a,b,c)"
????
That seems awkward to have a string that gets interpreted as a function call. And does that even work? Or what is the way to do what I'm trying to do?