By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,774 Members | 1,380 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,774 IT Pros & Developers. It's quick & easy.

navigating to a target frame using javascript

P: n/a
Hi there

im tryin to nav to a frame using javascript.

I have a frameset within a frameset. I want to be able to navigate from
the inner most frameset to an outer frame.

So frame i have only managed to nav to a frame within the current
framset using the following code:

parent.frames['0'].location.href="myPage.asp";

I've used the alert box to display all the frames within the frameset
and the frames displayed are only the frames in the inner most
frameset.

How do you reference the outer most frames.

Thanks in advance.
Bob.

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Try parent.parent.frames[0]...
To get to the outermost frame you could also do: top.frames[0]

rb****@hotmail.com wrote:
Hi there

im tryin to nav to a frame using javascript.

I have a frameset within a frameset. I want to be able to navigate from
the inner most frameset to an outer frame.

So frame i have only managed to nav to a frame within the current
framset using the following code:

parent.frames['0'].location.href="myPage.asp";

I've used the alert box to display all the frames within the frameset
and the frames displayed are only the frames in the inner most
frameset.

How do you reference the outer most frames.

Thanks in advance.
Bob.

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.