944,209 Members | Top Members by Rank

Ad:
Jun 14th, 2006
0

Page Communication

Expand Post »
On my main web page, I have a button that opens a browser window, this window contains a tree menu created with JS.

What I need to know is if I click on a link in the tree menu, is it possible to comunicate with the main page in such a way, that the main page follows the link and not the browser Window? If so, how?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gendv is offline Offline
18 posts
since Jun 2006
Jun 14th, 2006
0

Re: Page Communication

What are you trying to do?

Add html address links to your javascript tree?
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jun 14th, 2006
0

Re: Page Communication

Quote originally posted by iamthwee ...
What are you trying to do?

Add html address links to your javascript tree?
yes!

Html page has a link that opens the window with the javascript tree, obviously this is a menu, I need this menu to control the main HTML Page.

Forgot to mention that the JS tree has been placed in a <div> tag in an HTML page.

It works ordinarily, but now it is in a browser window, and if i navigate noremally, it will continue to browse in that window, which is not what I want.

I know in HTML it would be "_parent" but this is a JS menu.
Last edited by gendv; Jun 14th, 2006 at 7:33 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gendv is offline Offline
18 posts
since Jun 2006
Jun 14th, 2006
0

Re: Page Communication

You can refer to the parent window via JavaScript as "opener".

However, if your JS menu simply contains/builds hyperlinks, you can still use the "target" attribute within those links, can't you?

You can also specify <base target="_parent"> within the header on the page, so that all hyperlinks go to the parent page.
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Roll over image and see text
Next Thread in HTML and CSS Forum Timeline: RollOver





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC