Piyush
Piyush

Reputation: 5315

clickevent in javascript

what is difference between onclick and onclientclick events?

Upvotes: 0

Views: 78

Answers (1)

kennytm
kennytm

Reputation: 523214

The difference is that onclientclick does not exist in Javascript.

It's an ASP.net extension. As shown in the example in MSDN's Button.OnClientClick Property page, onclientclick will call client-side script, while onclick will call the server-side script.

Upvotes: 5

Related Questions