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!

what concept?

Status
Not open for further replies.

sjohnson

Technical User
Dec 18, 2002
2
US
Hi all!

Can anyone please tell me about this?

parent.parent.frame[1].frame[1]

The above code is based on what concept?
 
There are a couple of concepts on display here, to do with framesets.

Firstly, the parent refers to the 'frameset' page as opposed to the pages contained in the individual frames. So to communicate with other frames within a set, you must go back up thru the parent first.

The second is that within a framset, or parent frame, there is an array created which holds the child frames, and we can access them using array notation as usual, rather than by name.The index corresponds to the order in which it is creates in the framset HTML.

The code you have above is describing a nested framset, like one page which contains say two frames, but then each one of the documents in those frames also has child frames -

Supposed each one of these child frames contains two frames i.e. frames[0], and frames[1] - then the above code would be actually talking to itself! "Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top