By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,567 Members | 1,522 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,567 IT Pros & Developers. It's quick & easy.

Javascript Navigation

P: n/a
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.
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
ch****@cybase.co.uk (Chris Kennedy) writes:
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.
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.
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?
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.
Or am I barking up the wrong tree??


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 - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2

P: n/a
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:
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.


Jul 20 '05 #3

P: n/a
rf

"Chris Kennedy" <ch****@cybase.co.uk> wrote in message
news:23**************************@posting.google.c om...
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.


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.
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.