View Single Post
Old 08-12-2003, 12:19 PM  
eisbaer
Confirmed User
 
Join Date: Aug 2002
Location: Switzerland, France...
Posts: 184
Script question for the Guru's

Hi,

on a new site i will open a Popup when the surfer leaves my Site.

therefore i have this little script:


var console=true;
function exit(){
var url2='http://www.vanessa.biz/links/toplist/links.html';
if (console)
open(url2, 'exit_console');
}



it activates on the pciture/banner on the top of the site with
onunload="exit()"

if the surfer clicks on a permitted link that moves him into the site i have linked these links with:

onClick="console=false"

this works perfectly fine...

BUT, when the surfer clicks the Back Button in the browser to go back on page the popup opens up also.

Do you have any solution for that? Or if there is absolutely none a better possibility for it. (how it would work fine with frames I know, but I won't use them)

you can see this on:

http://www.vanessa.biz

Thanks a lot

eisbaer
eisbaer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote