OnClick vs. OnClientClick

For some time now I've developed some web applications with Mono, and in the beginning I really had my problems with the interaction between the ASP pages and Javascript , because the one thing runs on a server and the javascript on the client.

And it really took a while until I found out how to make a button not just doing a simple postback on a click-event, but to call a javascript function.