It's not a secret anymore!
The moose likes HTML, CSS and JavaScript and the fly likes document.referrer? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "document.referrer?" Watch "document.referrer?" New topic


Michael Huber
Ranch Hand

Joined: Aug 20, 2004
Posts: 43
I'm trying to use document.referrer to find the url of the window from which a window was poped, is that possible with document.referrer???

for example

your current window (Window A) clicking on a link pops up window B
I;ve tried to put document.referrer in window B to get the url of window A, but when I alert(document.referrer) its blank

is this correct usage of referrer

thanks for all your help
[ May 17, 2006: Message edited by: Bear Bibeault ]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385

Michael Huber
Ranch Hand

Joined: Aug 20, 2004
Posts: 43
thanks got it
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: document.referrer?
jQuery in Action, 3rd edition