• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 318
  • Last Modified:

rename frame from frameset

My index.html page creates a top frame called "header" and bottom frame called "body" and a link in the bottom frame loads into "body".  However, javascript in the page renames the frame to "update" using self.name = "update".  Since all the links in the "header" frame target "body", clicking the links will open a new window since there are no longer any frames named body.  

Is there any way to use javascript in the "header" frame to rename the bottom frame back to "body"? (not all the pages rename the frame to "update")
0
MrNiceGuy020700
Asked:
MrNiceGuy020700
  • 2
1 Solution
 
Michel PlungjanIT ExpertCommented:
top.frames[1].name = 'body';

Body is not a good name by the way... Used in IE

Michel
0
 
MrNiceGuy020700Author Commented:
Ding Ding Ding Ding.....
we have a winner :)

Thank you very much...that worked perfectly....
for some reason I wasn't sure that I could address the frame that way, but alas....it worked perfectly.

Thanks, Michel
0
 
Michel PlungjanIT ExpertCommented:
Anytime

Michel
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now