Capture user response when using [removed]

前端 未结 4 1804
遇见更好的自我
遇见更好的自我 2020-12-10 11:59

Is there a way to capture whether the user clicked OK or CANCEL?

I need to do something ONLY if the user is leaving the page....

4条回答
  •  伪装坚强ぢ
    2020-12-10 12:12

    No, browsers allow you to only specify the text in the alert box, but no way to catch the result.

提交回复
热议问题