This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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

Win a copy of Head First Android this week in the Android forum!
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
It is sorta covered in the JavaRanch Style Guide.
subject: document.referrer?
It's not a secret anymore!