Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to access nested frames with the frame name or id ?

 
Rohan Kayan
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have one Q related to Event propagation in frame structure

1. How can we access one frame from another frame with out knowing the actual hierarchy of the frame , I just have the frame name or frame id of the frame which I want to search?




Regards,
Rohan
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Normally you would just reference the parent and than the frame id
parent.getElementById("theFrameId");

Are you saying that the frame is nested in other frames?

Eric
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTML & XHTML, The Definitive Guide says on page #400:

The optional name attribute for the <frame> tag labels that frame for later reference by a target attribute for the anchor (<a> tag and the <form> tag. This way, you can alter the contents of a frame using a hyperlink in another frame. Otherwise, like normal browser windows, linked documents replace the contents of the source frame.

Similarly, the id attribute uniquely identifies a frame, but the browsers do not support its use for target redirection, even though they do support id's use as a hyperlink target in many other HTML and XHTML tags.


Hope it helps....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic