control [removed] event

后端 未结 3 845
抹茶落季
抹茶落季 2021-01-25 20:34

From out of curiosity can i Control window.onbeforeunload event like check if the user decided to leave the page or stay in it and can I raise an alert or some function based on

3条回答
  •  醉酒成梦
    2021-01-25 20:50

    You can ONLY return a string which will show a dialog confirmation displaying the string you returned (But with additional ok/cancel buttons to confirm the action).

    
    

提交回复
热议问题