how to get popup to work when customer tries closing site

with your pop up pro, how do I get it to pop up when a customer tries closing the page and no other time. Thanks