[英]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>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.