문제

버튼 클릭 이벤트 끝에서 코드 뒤에있는 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 ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top