We would like to have a feature to display a javascript popup message ("We would like to offer 10% discount for the items that have been added to the cart by you.") when customer closing the browser or typing some other URL in browser at the time of some items are in the cart.
Is it possible to display a message if the cart is not empty, when customer closing the browser?