Safari on MacOS can use the beforeunload event but I'd discourage it because of its performance impact. So what is a web developer to do instead ...
確定! 回上一頁