These pop-ups use JavaScript and tracking algorithms to monitor user behavior. When the software detects that the user's mouse is moving towards the browser's close button or the back button, it triggers the pop-up. The pop-up can contain various types of content such as a special offer, a request to subscribe to a newsletter, or a survey to understand why the visitor is leaving.