473,385 Members | 1,506 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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.
Jul 20 '05 #1
3 1768
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Andy Fish | last post by:
Hi, I want to use an anchor tag to invoke some javascript and I've read that it's bad form to use <a href="javascript:foo()"> I've read endless usenet posts and hint sites on the net, they all...
2
by: Jeff Thies | last post by:
I have a site with javascript navigation menus (it's in the design spec). There's a bit too many pages to do a bread crumb type alternate nav, and no natural index page for each site section. ...
8
by: Rob McLennan - ZETLAND | last post by:
Hi, I have set up an external stylesheet, named "print.css", to format the style of all pages printed from my company's website. I've been previewing my changes to the stylesheet by doing...
10
by: Gernot Frisch | last post by:
Hi, I have found some menu functions. It works quite well, but how can I replace it with a simple <a href> if javascript is turned off? I reduced my code to:...
9
by: jeremy | last post by:
In a web app I'm develing for PDA's, I'm using javascript for navigation. (document.location = "url"). I've seen a bunch of posts on the groups saying this is a bad idea, but no explanations...
2
by: PythonUsr | last post by:
Hello! I am quite new to Javascript, but not new to programming in general or to (X)HTML. Using events, is it possible to redirect someone to a new page? So if you lined up five buttons, you...
9
by: thetechturf.com | last post by:
I have got a small problem getting my dropdown menu to work. I want to change the style with javascript. Here is the code in my HTML: <div id="navigation"> <ul> <li id="lnot"><a...
6
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - I have <a href="javascript:somefunction()"what .... ?...
3
by: rassklass | last post by:
HI all, I have designed a site found at www.pickupnewspapers.co.uk/nottinghamshire/index.html but I cant get the footer to sit stil on the page. It is because of the javascript ticker, everytime...
2
by: ManidipSengupta | last post by:
Hi, a few (3) questions for the Java experts, and let me know if this is the right forum. It deals with 100% java code (reason for posting here) but manages a Web browser with Javascript. Thanks in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.