Please note that for this to work you must click somewhere on the page.
#1643775 - Lighbox on Unload