Script question for the Guru's

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eisbaer
    Confirmed User
    • Aug 2002
    • 184

    #1

    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
Working...