Does anyone have a quick script that would pop an alert that you will lose any unsaved information when they click on the browser back button?

Much appreciated!