This is probably coming from the WYSIWYG editor which is calling the hookupGoodbyePrompt javascript method.
To stop it from happening on your save button, add UIHelper.AddClearPageExitCode(btnSave);
to your code-behind. We typically add this in the PopulateLabels method.
Hope this helps,
Joe