mattscotney
Programmer
Hi php coders,
I have a site with around 16 pages. Each page on my site has the my standard nav bar with 15 internal and 2 external links.
I want code using mostly php to create a true exit popup window.
The popup window should not appear if the user clicks any of my defined internal or external links.
The popup window should not appear if the user clicks the back, forward, or refresh buttons on their browser window.
The popup window should only appear when the visitor leaves the site by any of the following methods:
1. Typing a new url in the browsers address bar.
2. Clicks the browsers home button.
3. Closes the browser window.
4. Exits the site through the first page they entered the site when using the back button.(example: user enters the site from google and is on parts.php, they surf around clicking various links including the parts.php button. The user then uses their back button to exit the site back to google, only when leaving the site through this method should the popup appear for the back button.)
The code should be well written and relatively easy to implement into my current site.
Thanks in advance,
Matt Scotney
I have a site with around 16 pages. Each page on my site has the my standard nav bar with 15 internal and 2 external links.
I want code using mostly php to create a true exit popup window.
The popup window should not appear if the user clicks any of my defined internal or external links.
The popup window should not appear if the user clicks the back, forward, or refresh buttons on their browser window.
The popup window should only appear when the visitor leaves the site by any of the following methods:
1. Typing a new url in the browsers address bar.
2. Clicks the browsers home button.
3. Closes the browser window.
4. Exits the site through the first page they entered the site when using the back button.(example: user enters the site from google and is on parts.php, they surf around clicking various links including the parts.php button. The user then uses their back button to exit the site back to google, only when leaving the site through this method should the popup appear for the back button.)
The code should be well written and relatively easy to implement into my current site.
Thanks in advance,
Matt Scotney