954,132 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Page Communication

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?

gendv
Newbie Poster
18 posts since Jun 2006
Reputation Points: 10
Solved Threads: 0
 

What are you trying to do?

Add html address links to your javascript tree?

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 

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 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.

gendv
Newbie Poster
18 posts since Jun 2006
Reputation Points: 10
Solved Threads: 0
 

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.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You