SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast remdog's Avatar
    Join Date
    Mar 2002
    Location
    Montreal, Canada
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    pop-up without closing window

    It is possible to code a pop-up window to show when someone abandons a site but doesn't close the browser window?

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,044
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)

    code

    It might be possible. But it's not something you want to do.

  3. #3
    SitePoint Enthusiast remdog's Avatar
    Join Date
    Mar 2002
    Location
    Montreal, Canada
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well, if it is possible, how can it be done?

    and question 2 is why wouldn't i want to do it?

  4. #4
    SitePoint Zealot
    Join Date
    Dec 2006
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by remdog View Post
    well, if it is possible, how can it be done?

    and question 2 is why wouldn't i want to do it?
    Because when a user leaves a site.. they want to leave the site, not visit another of your pages. Programming the site to do some other than what the user wants/expects won't have them coming back or liking your site.

  5. #5
    SitePoint Enthusiast remdog's Avatar
    Join Date
    Mar 2002
    Location
    Montreal, Canada
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, what about the 'how can it be done' part?

  6. #6
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok remdog, you're persistent and still have a good attitude about it. I admire that.

    So here's a tip: search this forum for "window.open" and "window.onunload" and you should find everything you need.

    Btw... if the user doesn't allow "unrequested" popups then it will get blocked


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •