문제

How to overwrite page onunload event in javascript witha custom dialog ? Please suggest.

This question has been asked many times but I was unable to find a proper solution.

도움이 되었습니까?

해결책

You can do this <body onunload="myFunction()"> in your html file, and put your custom stuff into the myFunction. You can do many cool things like this, a list can be found here.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top