window.onbeforeunload = function (e) {
// return a string if you don't want to close
// the returned string will be displayed in the browser
return "Do not close please!";
// return undefined to close the TAB
return;
};
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)