How do you call a JavaScript function at the end of a button click event in code?
If you are working in .NET, you can try
ScriptManager.RegisterClientScriptBlock(myButton, this.GetType(), "BlockName", "alert('hello world');", true);
You probably need the onmouseup event:
<button onmouseup="alert('You release the mouse button!')">Click me</button>
Source: https://habr.com/ru/post/1703088/More articles:Plugin Maven 2, build + surefire - maven-2to optimize a SQL query - optimizationProblems with ASP.Net Public Service - asp.netListView MouseClick Event - c #How to create a WPF path that stretches in place - wpfWhat do you think is the most abused design pattern? - designFinding top-level xml comments using Python ElementTree - pythonКак найти пользовательское поле ip-адреса, сохраненное как целое в Django-admin? - pythonWinAPI - how to draw a dashed line? - windowsEfficiently extract and filter files - performanceAll Articles