在按钮单击事件结束时调用JavaScript函数
如何在代码隐藏中的按钮单击事件结束时调用JavaScript函数?您可能需要onmouseup事件:在按钮单击事件结束时调用JavaScript函数,javascript,.net,asp.net,code-behind,Javascript,.net,Asp.net,Code Behind,如何在代码隐藏中的按钮单击事件结束时调用JavaScript函数?您可能需要onmouseup事件: <button onmouseup="alert('You release the mouse button!')">Click me</button> 点击我 如果你在.NET中工作,你可以试试 ScriptManager.RegisterClientScriptBlock(myButton, this.GetType(), "BlockName", "alert('
<button onmouseup="alert('You release the mouse button!')">Click me</button>
点击我
如果你在.NET中工作,你可以试试
ScriptManager.RegisterClientScriptBlock(myButton, this.GetType(), "BlockName", "alert('hello world');", true);
可能重复的