homepage Welcome to WebmasterWorld Guest from 54.204.68.109
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Accredited PayPal World Seller

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
popup window needs URL for doc that opened it
get the url of parent's web page
johnkevien




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

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!

 

jatar_k




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

Welcome to WebmasterWorld johnkevien,

what about in javascript using the window.opener property?

johnkevien




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

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 .

tedster




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

it's window.opener.location

johnkevien




msg:1480872
 2:46 pm on Apr 1, 2003 (gmt 0)

Thank you very much!

It work well!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved