编程语言
首页 > 编程语言> > 在按钮单击事件结束时调用JavaScript函数

在按钮单击事件结束时调用JavaScript函数

作者:互联网

在按钮后面的代码单击事件结束时,如何调用JavaScript函数?

解决方法:

如果您使用的是.NET,则可以尝试

ScriptManager.RegisterClientScriptBlock(myButton, this.GetType(), "BlockName", "alert('hello world');", true);

标签:code-behind,asp-net,javascript,net
来源: https://codeday.me/bug/20191024/1921560.html