Dialog popup onunload

Dialog popup onunload

One of the parameters for the dialog is:

autoOpen: true,

So it automatically opens when the page is loaded. Can this be changed to when the page is unloaded? My client would like to the dialog to appear when someone exits the page.

Thanks,
Scott