Actually, that will prompt you even if you submit the form successfully. This might be more of what you are looking for:
http://javascript.about.com/library/blvalsub1.htm
If the form is not submitted, you can have it pop the unload message.
Sean
http://javascript.about.com/library/blvalsub1.htm
If the form is not submitted, you can have it pop the unload message.
Sean