I am trying to figure out if there is a way that when the user hits 'X' to close the browser, some values can be passed and a new function is called. Basically I want to save the info the user has entered before they close the browser. I want to open up a new window when the user closes the browser.