簡體   English   中英

在按鈕單擊事件結束時調用JavaScript函數

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM