Pop up that appears on domain exit only.

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Pop up that appears on domain exit only.

    I would like for a pop up to appear on closing the "x" on the top right of a
    browser window,

    What this means is, I want a pop up to appear when a user is trying to leave
    my website. Example: give them a special offer.

    I do not want this message to appear when they leave to visit/surf other areas
    of my website.

    Please help!

    Ramona _ Guest

  2. Similar Questions and Discussions

    1. ?????????? appears in Access
      when inserting text into an Access database ?????????? sometimes appears Could anybody tell me what this is please??
    2. accessing IP/domain-authenticated user's IP/domain string programmatically?
      When using IP or domain authentication, is it possible to access the IP address or domain name of the requestor, after authentication has occurred,...
    3. Loaded MC appears way too big, why? Please help!
      Hi guys ,hope you can help me out again! After worrying myself sick about converting to flash 2004 I have finally got myself a demo version and am...
    4. How to permit Domain User in AD domain install software on his/her machine?
      Hello, I have AD domain and 100 users, 15 of them are developers. Developers need full control over their machines. They need to install...
    5. Can see www.<domain>.com but not <domain>.com after named setup
      Good evening all, I am having a problem setting up named on RH9 linux box for an external domain. I have set up the various conf files (shown...
  3. #2

    Default Re: Pop up that appears on domain exit only.


    It is not possible to distinguish just how the user is leaving your
    page. The event in question here is the unload event, and it fires
    whether the user clicks the X, or submits a form, clicks a link, whatever.

    --

    E. Michael Brandt

    [url]www.divaHTML.com[/url]
    divaGPS : you-are-here menu highlighting
    divaFAQ : FAQ pages with pizazz

    [url]www.valleywebdesigns.com[/url]
    JustSo PictureWindow
    JustSo PhotoAlbum

    --

    Ramona _ wrote:
    > I would like for a pop up to appear on closing the "x" on the top right of a
    > browser window,
    >
    > What this means is, I want a pop up to appear when a user is trying to leave
    > my website. Example: give them a special offer.
    >
    > I do not want this message to appear when they leave to visit/surf other areas
    > of my website.
    >
    > Please help!
    >
    E Michael Brandt Guest

  4. #3

    Default Re: Pop up that appears on domain exit only.

    Forgot also to mention that such unsolicited popups are likely to be
    blocked by the user's Popup Blocker. So all in all this is a bad idea.....

    --

    E. Michael Brandt

    [url]www.divaHTML.com[/url]
    divaGPS : you-are-here menu highlighting
    divaFAQ : FAQ pages with pizazz

    [url]www.valleywebdesigns.com[/url]
    JustSo PictureWindow
    JustSo PhotoAlbum

    --

    E Michael Brandt wrote:
    >
    > It is not possible to distinguish just how the user is leaving your
    > page. The event in question here is the unload event, and it fires
    > whether the user clicks the X, or submits a form, clicks a link, whatever.
    >
    E Michael Brandt Guest

  5. #4

    Default Re: Pop up that appears on domain exit only.

    [q]Originally posted by: Ramona _
    I would like for a pop up to appear on closing the "x" on the top right of a
    browser window,
    What this means is, I want a pop up to appear when a user is trying to leave
    my website. Example: give them a special offer.
    I do not want this message to appear when they leave to visit/surf other areas
    of my website.
    Please help![/q]

    You could try this:
    1. Create the HTML page popup page the way you want. lets call it popup.html
    Now if i understand correctly, you want to go to this popup.html you just
    created if the user wants to close the main page right?

    2. This goes in the main page:
    <body onunload="javascript:logout()">
    The function logout() looks something like this:

    function logout ()
    {
    window.open("popup.html");
    }


    I hope that helps you.
    But if my pop up blocker is running this code wont work anyway.


    east99 Guest

  6. #5

    Default Re: Pop up that appears on domain exit only.

    They are right. When leaving a page the ONUNLOAD event gives no clue to where
    they are going our how the page is closing (submit, link, ...).

    But you can create a pop-under window. If you use the ONULOAD, popup blockers
    will block it. One can jump into the onClick event and add a function that will
    open the pop-under window and avoid blockers.

    The Advanced Window Open 3.0 extension has the tools to build those windows.
    Many of us are prejucied against these types of popup ads but clients like
    them. Unfortunately there are always more nubies on the net that will buy via
    popups... Someday someone will do a market study to tell us they help or hurt
    sales.

    AAlanC Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139