Hey javascript experts, haven't been able to figure this one out:

I have a site where I need the javascript code to insert onto my homepage for the following:

When a user wants to exit the...