473,473 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to get users browsing history

Hi All,

I know that document.referrer can be used to get the last page the user
visited, but how can I get the page visited before that? Can this be
done in JS?

TIA

Sep 11 '06 #1
2 2283
Noodle wrote:
Hi All,

I know that document.referrer can be used to get the last page the user
visited,
You might think that gives you the last page visited, but it is very
unreliable.

If whatever UA I am using decides to give you a referrer, it might be
the page that linked to your site or it could be whatever I told the UA
to send you. If I have copied the link and pasted it, you'll get no
referrer at all.

but how can I get the page visited before that? Can this be
done in JS?
No. You can't access the browser history, all you can do is attempt to
send the user backward or forward some count of links based on the
history of the window or tab that the page has been opened in - which
might not be the window that was used to navigate to the page.
--
Rob

Sep 11 '06 #2
"Noodle" <ne*****@gmail.comwrote in news:1157963041.166520.137330
@i3g2000cwc.googlegroups.com:
Hi All,

I know that document.referrer can be used to get the last page the user
visited, but how can I get the page visited before that? Can this be
done in JS?
come on, you don't really want someone knowing the banking sites and porn
sites you visited before hitting their magical javascripted page, do you?
Sep 11 '06 #3

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

Similar topics

10
by: Paul Kooistra | last post by:
I need a tool to browse text files with a size of 10-20 Mb. These files have a fixed record length of 800 bytes (CR/LF), and containt records used to create printed pages by an external company. ...
6
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by...
1
by: Charlie | last post by:
On dynamic sites, the history buttons can be confusing to users as they do not force return trip to server to get updated content. I get complaints from users saying things aren't working when...
0
by: Betty Harvey | last post by:
NOTE: This is the last meeting of 2006!! The next meeting of the XML Users Group will be held on Wednesday, November 15, 2006 at the American Geophysical Union (AGU) at 2000 Florida Avenue,...
4
by: tomeq10 | last post by:
Hi All, I have this problem. I have a main page, and option to show popup window. This popup window is div + iframe based. When User clicks to open this popup, he do some staff on it, there are...
6
by: John Grandy | last post by:
Does how to delete all of IE's browing history from the command line ? Same as Tools Internet Options Browsing History Delete Delete all... What I'd like is a .bat file.
2
by: =?Utf-8?B?YmlsbA==?= | last post by:
Hi I run windows EP service pack 2.I am on internet explorer 7.When I go into tools option delete history cookies ,temp file & so on .It doesnt work .I have deleted & reinstalled expl 7 but it...
2
by: questionit | last post by:
Hi, In IE7, how to find browsing history that would show complete URL like in IE6 where we can goto the website page directly. In IE7, only the site's main name can be seen but not the full...
1
by: pavanip | last post by:
hi, I have an application that will find Firefox browing history, Auto complete datalist, Temp offline files and Find Computer list. please give me some idea on Auto complete datalist, Temp offline...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.