Welcome to WebmasterWorld Guest from 54.145.221.99

Forum Moderators: open

Message Too Old, No Replies

popup window needs URL for doc that opened it

get the url of parent's web page

   
4:45 am on Apr 1, 2003 (gmt 0)

10+ Year Member



I had made a web page(emailpage.htm) to email the current page[using the javascript].

I'd like to make the emailpage.htm acts like a popup window .But I can't get the url from the parent page from the emailpage.htm.

Please help me! thank you very much!

4:47 am on Apr 1, 2003 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Welcome to WebmasterWorld johnkevien,

what about in javascript using the window.opener property?

7:33 am on Apr 1, 2003 (gmt 0)

10+ Year Member



I mean:

page one: emailpage.htm
page two: article.htm

there is a link on page "article.htm" to open a new window(emailpage.htm).

Now I use the code :"window.location" to get the current page(emailpage.htm) url,but I wnat to get the url of article.htm .

10:19 am on Apr 1, 2003 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



it's window.opener.location
2:46 pm on Apr 1, 2003 (gmt 0)

10+ Year Member



Thank you very much!

It work well!