When a visitor leaves our web site by closing the browser window or by going to another site (other than our site), we need a script that temporarily stops them from leaving and presents a message in HTML format. It should work similarly to an exit pop on a site called pctv4me.com. Please go to that site, click on Order Now in the lower right corner, then close the browser window to see how the script gets called and what it does for the user.
The key functionality here is that the exit popup screen comes up when the visitor closes the browser window or when they go to a different site. It's possible our payment page would be on a different site, so that URL would need to be protected.? On our site, there will likely be a navigation bar with links to other pages within the site. Some code could be placed within the anchor tags of the links to make these links "immune" from the script popping up.
We need to be able to adjust the message area size easily.
Please make sure the code for this project is your original code.