call function during onclick of button in page

call function during onclick of button in page

Hi,

I am trying to call the creator function say example thisapp.func() during onclick of button or anchor tag.

I have tried the below code which is working automatically on page loads instead of onclick of button.


<a class='zc-formbutton' onclick="<%=thisapp.divideTelecaller()%>">Wanna Split up and assign Clients to users?Click here</a> 

Thanks,
ITKES