In this call the quotes do not have to be escaped:
onClick='test_func("a", "b")'
That is unless you are outputting from PHP, in which case it would depend on whether the statement is enclosed in double or single quotes.
e.g.:
echo "onClick='test_func(\"a\", \"b\")'";
or
echo "onClick=\"test_func('a', 'b')\"";
Speaking purely from the client-side standpoint you do not have to escape single quotes if the statement is enclosed in doubles and vise versa (as is the case in PHP).
You don't need the semi-colon there either.
Does that answer your question?
If not I would need to see more code to know what you are talking about.
: )
Rich
:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::