/    Sign up×
Community /Pin to ProfileBookmark

Javascript Tree – Help needed

Hi all,
I’m creating a tree menu using tables. Everything is working fine. I also want to add another feature for which am not aware of what logic to use . The feature is as follows.

Let us take for example, that my tree resides in the left frame of a two frame page. Every link frm the tree is opened in the right-side or the main frame. I have back and foward buttons in every mainframe page. Can i control the movement of the tree (moving back n forth the hyperlink background of tree) links from the main page when i press the back and foward buttons in the main page.

A typical example is in the Microsoft MELL e-Books, where the back and foward buttons move the hyperlinks in the tree on the right side also. The scroll-bar also moves accordingly to keep the active hyperlink in focus!!

Can anybody reply this thread with the logic how to control the hyperlinks of one page from another frame?.

i will be very grateful if someone helps me

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@sciguyryanSep 18.2004 — Actually, yes you can:

All you have to do is follow the fllowing syntax:

FrameName.location.href = "Your URL Here";


Say for example my frame was called "Products" (The ID or name element was called "Products") I would use this:

<a href="javascript: void" OnCLick="Products.location.href='Procucts01.html'">Product 01</a>



Hope that helps,


RyanJ
×

Success!

Help @johnmanoahs spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...