![]() |
Exit popup when LEAVE DOMAIN!
Ok I want an exit popup on my page but i do not want to use frames or the noclick code etc..
I want it to be programmed to exit when the surfer closes the browser or leaves the domain. POSSIBLE? ICQ 46335817 or other solutions here. Reason i dont want to use frames, because SE hate them Reason i dont want to use noclick command because when surfer clicks back on browser they get the exit pop. |
So, you just want it to pop up when they close your site? That's simple. You don't need frames for somethinglike that. Check out http://www/dynamicdrive.com they might have some sample code for you.
As for the back button, you may be able to trap that even with something like OnHistory.go() or something similar. You'll have to look it up. SpaceAce |
uum if its that simple why does everyone not use it?
and wheres this code? |
I think you're asking for the impossible.
|
Quote:
SpaceAce |
Quote:
|
Quote:
SpaceAce |
Using frames is the only way I know of to keep the console from popping on the back button.
SE's hate them but most SE guru's build separately for the engines anyways. |
Quote:
|
Quote:
|
Quote:
re-read the thread and if u think its not impossible please provide the code! |
Quote:
& what did u find the best solution to be? |
|
Quote:
In short it required that the popup code be put in the parent frame and the site put in the child. To detect if the surfer was clicking back out of the site vs. closing the window we check the name of the parent window and whether it has a history. |
Quote:
|
I don't think it's possible.
With frames it works. And you can just put all the html code inside the noframe tags so search engines see it as well. |
you can set a cookie on the pages, without specifying the expire date.. the cookie will stay on the browser as long it is open.. you can have the popups check for that cookie and if it is there, you can have them close themselves right after they popup.. and you should also use the noclick function on the links..
if the cookie is gone, the surfer has left the site, and the popup doesnt close itself. if someone clicks back button, the popup will show up and close itself real quick.. it might look annoying sometime or just slow it down a bit but it will only happen when the back button is used, so it wont be that bad.. |
Quote:
|
Quote:
|
I have disabled back buttons when the user leaves the domain and popups on exit (of the domain) but you need frames. If you want the code, hit me on ICQ Darren.
WG |
All times are GMT -7. The time now is 01:50 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123