Allows web applications to register conditions under which an user will be asked to confirm exiting the page.