View Single Post
Old 08-12-2003, 12:13 PM  
eisbaer
Confirmed User
 
Join Date: Aug 2002
Location: Switzerland, France...
Posts: 184
Javuscript Guru's one simple (i hope so) question...

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)

Thanks a lot

eisbaer

Last edited by eisbaer; 08-12-2003 at 12:16 PM..
eisbaer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote