whenever he wants to close, refresh or back to previous in the page?
thanks in advance
window.addEventListener('beforeunload', function() { alert('You really want to exit?'); });
List of DOM events you might want to have a look at, https://www.w3schools.com/jsref/dom_obj_event.asp
Обсуждают сегодня