473,404 Members | 2,174 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,404 software developers and data experts.

Exit page. Where do my users go?

Is there a way using javascript (or anything else) to know where the
users go after they leave my page? Like "Do you want to navigate
away ..." does a good job of alerting people no matter how they want
to navigate away, clicking on links, clicking on bookmarks, typing new
URLs etc, can I know where they go when they exit my page?
Jun 27 '08 #1
5 1508
No. Unless they go to another of your pages.

Tim

<vi***@kcm.edu.npwrote in message
news:c0**********************************@34g2000h sh.googlegroups.com...
Is there a way using javascript (or anything else) to know where the
users go after they leave my page? Like "Do you want to navigate
away ..." does a good job of alerting people no matter how they want
to navigate away, clicking on links, clicking on bookmarks, typing new
URLs etc, can I know where they go when they exit my page?

Jun 27 '08 #2
VK
On May 1, 5:51 am, vi...@kcm.edu.np wrote:
Is there a way using javascript (or anything else) to know where the
users go after they leave my page? Like "Do you want to navigate
away ..." does a good job of alerting people no matter how they want
to navigate away, clicking on links, clicking on bookmarks, typing new
URLs etc, can I know where they go when they exit my page?
No, because that would be a rude violation of users surfing privacy,
so such mechanics is blocked. Withing your own side you could use page-
specific cookies so the next page could check such cookie to see what
page user came from.
Jun 27 '08 #3
vi***@kcm.edu.np wrote:
Is there a way using javascript (or anything else) to know where the
users go after they leave my page? Like "Do you want to navigate
away ..." does a good job of alerting people no matter how they want
to navigate away, clicking on links, clicking on bookmarks, typing new
URLs etc,
Don't do that, then.
can I know where they go when they exit my page?
No, because client-side scripting was not invented for the purpose of spying
on people or for annoying them in other ways.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Jun 27 '08 #4
vi***@kcm.edu.np writes:
Is there a way using javascript (or anything else) to know where the
users go after they leave my page?
Generally not.
Why would you need that?
Like "Do you want to navigate away ..." does a good job of alerting
people no matter how they want to navigate away, clicking on links,
clicking on bookmarks, typing new URLs etc,
That would be the "onunload" event? It's nonstandard, but I guess it works.
can I know where they go when they exit my page?
Only if they follow a link on your page.

The easiest way to achieve it would be changing each link to a redirecting
page. I.e., instead of "http://www.example.com/", the link is
"http://www.mydomain.com/redirect?to=http://www.example.com/" and that
page records the passing user and returns a redirect status (301).

It does slow the browsing down slightly, and people can become very
annoyed at crap like that.

Another, worse, approach is to have each link trigger some javascript
that sends a XMLHttpQuery request and delays the user for long enough
to get it off, e.g., using an onunload annoyance (you don't need the
response anyway).

All in all, stop spying on your users. We don't like it.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jun 27 '08 #5
Lasse Reichstein Nielsen wrote:
vi***@kcm.edu.np writes:
>Like "Do you want to navigate away ..." does a good job of alerting
people no matter how they want to navigate away, clicking on links,
clicking on bookmarks, typing new URLs etc,

That would be the "onunload" event? It's nonstandard, but I guess it works.
The `onunload' event _handler attribute_ is specified in W3C HTML 4.01, a
Web standard:

http://www.w3.org/TR/REC-html40/inte...#adef-onunload

The _`unload'_ event is specified in W3C DOM Level 2 Events, a Web standard
(which supersedes the definitions in HTML 4.01):

http://www.w3.org/TR/2000/REC-DOM-Le...ngs-htmlevents
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Alex Hunsley | last post by:
I'm making a web site that does login authentication. It all works fine, but I have a question about 'correctness'... Certain php scripts on the site should only run in the user has logged on....
17
by: jwaixs | last post by:
Hello, I was wondering, what's the difference between exit and return in the main() function? For me they both look the same, or aren't they? And if they aren't, which should I use in which...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
4
by: Andre | last post by:
Hi, I have an application that display users invoice. On every page i have an "Exit button". Is there a way, if the user click on "Exit" (to logoff from the system), and after on Back in is...
2
by: Simon Harris | last post by:
Hi All, I'm trying to access a folder stored below the root of my site called 'private', which is where my host recommend storing application data. When I do a server.mappath on ../../private,...
6
by: Vicky | last post by:
Please tell me at vdkhakhkhar@gmail.com
2
by: Matuag | last post by:
Hi All, I want to create following command buttons on a Form which users can edit. Save ( Save Changes made) Cancel ( Undo data changes) Exit ( Close form) I am using Macros for each of...
39
by: mathieu | last post by:
Hi there, I am trying to reuse a piece of code that was designed as an application. The code is covered with 'exit' calls. I would like to reuse it as a library. For that I renamed the 'main'...
5
by: lemlimlee | last post by:
hello, this is the task i need to do: For this task, you are to develop a Java program that allows a user to search or sort an array of numbers using an algorithm that the user chooses. The...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.