I need to create a script that will display a pop-up message when a user tries to close or leave my website by any of these means: - By closing the entire browser window - By closing the browser tab - By typing in another url in the same tab It MUST NOT display when user clicks on a link on the page itself or stays within the same domain. Here's the pop-up message: "Before you leave this site, would you like to have a look at our special offer for 100 products with Resell Rights?" Answers: YES | NO Clicking NO will allow the user to either close the page or continue to another website. Clicking yes will lead the visitor to another page on my site, loads in the same window. Script must identify visitors based on cookie, so it will not be displayed to the same visitor more than once. Script must also be located in an external file, so I can call the script from any page and also modify the settings if I want to. I'd suggest Javascript or PHP, but pleae give your recommendations. Please use the code "exitoffer" in your reply so I'll know you've had a look at this. I need it in working order before September 17. I will pay half upon completion and half upon testing (please allow 5 days)
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
PHP Javascript