How to create an on-exit pop-up widget

Follow