Link_to Tag, Onclick Event

Hi,
I want to do like this :-
<a href ="#" onclick="return validate_pdf();">

using Link_to tag.
Where - validate() is an java script function in that RHTML file.

Is this is possible using link_to tag? If yes tell me hoe to do that?

Thanks & Regards,
Tushar

link_to_function will do that.

Fred