Link_to_function onmousedown


#1

Hi,

Is there some way to produce an anchor that looks like the following
using helpers, or should I just code it in the rhtml like this?

Thanks,
Brad

Bradley M.


#2

link_to_function(“click me”,“foo();return false”)


#3

Sorry, got that wrong.
i guess it could be:

link_to_function(“click”,"",{:onmousedown=>“foo()”})