views:

1645

answers:

2

How do you call a javascript function at the end of button click code behind?

A: 

You probably want the onmouseup event:

<button onmouseup="alert('You release the mouse button!')">Click me</button>
tehvan
+5  A: 

If you're working in .NET you could try

ScriptManager.RegisterClientScriptBlock(myButton, this.GetType(), "BlockName", "alert('hello world');", true);
wegrata
this really worked... thanks :)
Chetan