Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

proper reference to a frame

Status
Not open for further replies.

49er

Programmer
Aug 24, 2000
38
US
I have a frameset document containing 2 frames. One of the frames is also a framesetting document containing 2 frames. From one of the pages in this "second" frameset document, what is the correct way to reference the top window so that I can use the location property to change the contents of the entire browser window. I tried "top.location" but no luck. Thanks.
 
yes that's it !! Thanks a lot.
 
Just reference it as "top". "top.location" is the same thing as "parent.parent.location" in your example... the URL of your top frameset. If you wanted to access "parent.parent.status" it would not be "top.location.status" but "top.status".
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
Yes. I thought that top.location was the solution as referenced in my initial question. However, for whatever reason IE 5.5 was not loading the url provided for the location property (but the parent.parent reference worked).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top