Javascript Navigation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Kennedy

    Javascript Navigation

    I have seen a feature on a site that I think is pretty cool. When the
    user leave the site a pop up appears asking would they like more
    information. I might be missing something but the first way I thought
    of doing this would be to find out where the user is going to and if
    it not within the site domain then display the popup. Is there a
    javascript property which on leaving the page tells you where it is
    going to? Or am I barking up the wrong tree?? Regards, Chris.
  • Lasse Reichstein Nielsen

    #2
    Re: Javascript Navigation

    chrisk@cybase.c o.uk (Chris Kennedy) writes:
    [color=blue]
    > I have seen a feature on a site that I think is pretty cool. When the
    > user leave the site a pop up appears asking would they like more
    > information.[/color]

    Trust me when I say that there are plenty of people out there, who
    would use less civil words than "cool" about unwanted popups.... to
    the extend that they install software (or use browsers) that prevents
    such popups from even appearing. I am one of those.
    [color=blue]
    > I might be missing something but the first way I thought
    > of doing this would be to find out where the user is going to and if
    > it not within the site domain then display the popup. Is there a
    > javascript property which on leaving the page tells you where it is
    > going to?[/color]

    There isn't.

    What you can do, it to put the effect on all links (that you make)
    that leave the site. This can be automated.

    Another solution is to add the effect to the onunload handler, and
    make every link into your site disable the effect. The advantage
    is that it works if people leave your site in another way than
    clicking on one of your links. The disadvantage is that many people
    disable this solution completely.
    [color=blue]
    > Or am I barking up the wrong tree??[/color]

    I would say: Totally. Don't pop up windows without explicit consent
    from the user, or risk the users leaving your site for good. Not all
    of them, but definitly some.

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    • orlando echevarria

      #3
      Re: Javascript Navigation

      You are not barking up the wrong tree BUT unreqrequested Pop-ups are
      very annoying and I turn them off by default unless I click on the link
      to give me that pop-up.

      Rest assured, while you may think it is "cool" your users may not.
      Trust me when I say this, users hate clutter and they want control over
      their browsing experience not the site operator who thinks something
      maybe "cool."

      As you can tell, I despise pop-ups because of their instrusive nature.
      If I want a pop-up, I'll click on it or if I am interested, I'll email
      you or fill out your form information request form.

      Chris Kennedy wrote:[color=blue]
      > I have seen a feature on a site that I think is pretty cool. When the
      > user leave the site a pop up appears asking would they like more
      > information. I might be missing something but the first way I thought
      > of doing this would be to find out where the user is going to and if
      > it not within the site domain then display the popup. Is there a
      > javascript property which on leaving the page tells you where it is
      > going to? Or am I barking up the wrong tree?? Regards, Chris.[/color]

      Comment

      • rf

        #4
        Re: Javascript Navigation


        "Chris Kennedy" <chrisk@cybase. co.uk> wrote in message
        news:239eb2fd.0 309160900.7eb9a 100@posting.goo gle.com...[color=blue]
        > I have seen a feature on a site that I think is pretty cool. When the
        > user leave the site a pop up appears asking would they like more
        > information. I might be missing something but the first way I thought
        > of doing this would be to find out where the user is going to and if
        > it not within the site domain then display the popup. Is there a
        > javascript property which on leaving the page tells you where it is
        > going to? Or am I barking up the wrong tree?? Regards, Chris.[/color]

        You are in a shoe shop. You don't like any of the shoes, not your style. You
        walk out the door. A salesperson runs out after you, stands in front of you
        and says "Would you like some more information on our shoes sir?".

        What do you do?

        Cheers
        Richard.


        Comment

        Working...