views:

14

answers:

2

What's a child frame in the context of a web page ? Is it the web page opened through a hyperlink on a page, or is it some part of the web page ?

A: 

Child frame would be any frame within a Frameset element. Or it may also refer to Inline Frames (Iframes)

Joyce Babu
thanks. Can u point me to a page which uses IFrames so that I can visualize what it is and the difference between it and opening a new page. Is it used to display ads, etc.
Daud
+1  A: 

That depends on what kind of frame you're talking about.

If you're talking about the frames that were used as page layout tools, then any of the frames inside of a frameset would be consider child frames.

<frameset>
    <frame src="frame1content.html" /><!-- First child frame -->
    <frame src="frame2content.html" /><!-- Second child frame -->
    <frame src="frame3content.html" /><!-- Third child frame -->
</frameset>

If you're talking about iframes, then the child frame is the iframe. Typically this method is used to open a page from another site and embed it on your own.

<body>
    <div>My page content!</div>
    <iframe src="http://stackoverflow.com" /><!-- Child frame -->
</body>
Justin Niessner