Working with Iframes
An iframe is an inline frame, that is, a frame that can be embedded within a regular HTML page instead of needing to be inside a frameset. Like a regular frame, an iframe is a separate HTML document. You can use an iframe as the target of a script, so you can create content on the fly under script control and display it in the page without having to use a frameset.
Script 5.17. The initial page that goes in the iframe.
Figure 5.14. The iframe, on the right, initially contains an instruction to click a link.
Script 5.18. This script calculates the content of the iframe and writes it into the window.