Frames In DHTML

Frames proved to be a valuable extension to the HTML language, allowing multiple documents to be displayed in a single browser. With DHTML, frames become even more powerful, with the ability to read and write across frames.

This is achieved by the usual referencing of elements, but we need to ensure that we ‘travel’ safely from one frame to another.

Here is the text that we see scrolling on the browser screen. This DHTML Example is brought to you by eBIZ.com.

</SPAN>
</DIV>
</BODY>
</HTML>

Each frame can talk to any other frame. When we do this kind of manipulation, we must take care to ensure that we are using the correct navigation path. top refers to the top-most window, i.e. the window object that all the sub-windows are descended from, and then we can travel down the tree until we get to the frame we wish to be at.

parent refers to the window directly above the current window, which is useful for nested frameset manoeuvres, rather than having to travel all the way to the top of the tree and then back down again.