Exit Redirect/Onbeforeunload Redirect Custom Script

IN PROGRESS
Bids
3
Avg Bid (USD)
$28
Project Budget (USD)
$10 - $30

Project Description:
I need a script that will pop a custom browser alert message (example: “Thank you for visiting”) and then after the user closes the custom browser alert message box the browser will then ask the user if they want to stay on the page or leave the page. If they choose to stay on the page, they stay on it. If they choose to leave the page the user gets redirected to another page in the same window (“window.location.href='http://www.redirectTOsomeSite.com';). The script must start/execute when the user tries to close the window or tab. Exitsplash.com homepage is an example of what I am looking for, BUT when the users clicks leave the page it must redirect using (“window.location.href='http://www.redirectTOsomeSite.com';). Exitsplash uses some ifames or something like that, that’s NOT what I want. Go to exitsplash.com try to close the window and you will see how I want it to work. I need the script to work in all major browsers fire fox, internet explorer, chrome, safari and hopefully opera. To whoever takes the job, keep in mind when making the script, browsers do update so make the script where is browser friendly and etc. Thank you for your time and I am looking forward to someone helping me with this small project.

Skills required:
Javascript
About the employer:
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


$ 30
in 1 days
$ 30
in 3 days
$ 25
in 3 days