Click here to Skip to main content
15,743,541 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
what is code for mouse on click event

There's lots of code related to mouse click events. Are you looking to create a JavaScript function that is fired when the mouse clicks a button? Or perhaps you want a postback to be fired when you click a button so that server side code will be executed when that button is clicked? Or maybe you just want a handler for any mouse click anywhere in the entire webpage? You need to be a little more specific. What are you trying to accomplish? What have you tried so far? What specifically are you having problems with? Post some code of what you've tried and explain what you expected it to do and what it is doing instead.
Share this answer
Please you should ask the question correctly. The event whether javascript or codebehind(c#,

code is below

for codebehind
protected void btnSave_Click(object sender, EventArgs e)
  //code to be executed

for javascript

<a href="" onClick="'');return false;">Code Project</a>

please let me know if you have any doubt
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900