3

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

4

2 回答 2

6

如果您在.NET 中工作,您可以尝试

ScriptManager.RegisterClientScriptBlock(myButton, this.GetType(), "BlockName", "alert('hello world');", true);
于 2009-02-12T13:03:09.627 回答
-1

您可能想要 onmouseup 事件:

<button onmouseup="alert('You release the mouse button!')">Click me</button>
于 2009-02-12T12:59:10.010 回答