To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.
See it run: Working with Iframes
An iframe is an inline frame that is embedded within a regular HTML page instead of needing to be inside of a frameset. This HTML page creates the iframe and calls the external JavaScript.
This HTML file is the initial page that goes in the iframe.
This JavaScript calculates the contents of the iframe and writes it into the window.