How to create an On exit pop-up widget

Follow