# Leaving Site Confirm Program # Version 1.0 # README File # By Mike Calabrese # http://www.mikecalabrese.com # 10-10-2000 # This program is available for free on an AS-IS basis. I am not # responsible for consequential damages, loss of income or whatever # else that may happen as a result of the use of this program. This program is designed to bring up a Java Script Confirm box when a user leaves your web site through a link on your site. If the user clicks on OK, he or she is taken to that site. If they click on cancel, they are returned to the previous web page on your site. Configuration is easy. Simply replace "http://www.target_url.html" in both the Java Script section and the html body with the URL that you want to take the user to. Then, replace "http://www.previous_url.html" with the relative or exact url that the user just come from. Next, go to the web page that the link is on and change that link to point to the confirm.html file. When the user clicks on a link on this page, they get the confirm box, which tells them that they are leaving your site if they click OK, that they can use their browser back button to return to your site and they will return to the previous page if they click on Cancel. The link in the html body section is designed for older browsers or those that have Java Script turned off. You can have a confirm.html file for various links simply by naming them differently. For example, a link to amazon.com could be called amazon_confirm.html, etc.