Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

document.referrer?

 
Michael Huber
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
window.opener.location.href

Eric
 
Michael Huber
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks got it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic