You mean you want to capture whether or not they returned to the page after leaving it and run some code, only if they have returned?