简体   繁体   中英

Calling JavaScript function at the end of button click event

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

如果你在.NET工作,你可以试试

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

您可能想要onmouseup事件:

<button onmouseup="alert('You release the mouse button!')">Click me</button>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM