Is it possible to capture the date and time that the user leaves the page (or closes the browser)?

Hi. I have a page where the user inserts his name and e-mail in a database (registration). Wix automatically captures the registration date and time. Is it possible to also capture the date and time that the user leaves the page (or closes the browser)?