버튼 클릭 이벤트 끝에서 JavaScript 기능 호출
-
22-08-2019 - |
문제
버튼 클릭 이벤트 끝에서 코드 뒤에있는 JavaScript 기능을 어떻게 호출합니까?
해결책
.NET에서 일하고 있다면 시도해 볼 수 있습니다
ScriptManager.RegisterClientScriptBlock(myButton, this.GetType(), "BlockName", "alert('hello world');", true);
다른 팁
당신은 아마 Onmouseup 이벤트를 원할 것입니다 :
<button onmouseup="alert('You release the mouse button!')">Click me</button>
제휴하지 않습니다 StackOverflow