Prevents actions (like alerts) when navigating away from a page.
Simply include the script in your HTML code.