Dynamic HTML Example : Opening a Common Window

By opening a single window, then reusing it to input new files, provides a fast display of data. This would have been a method used prior to the availability of cascading style sheets. It will be shown in following examples that the same result can be much more dynamic when using style sheet overlays.

Creating a common window requres four steps:
1. Cache any images that will be displayed in the window.
2. Give the window a variable name, sizing it to accept all input files.
3. Create a function that will initially open the window and/or replace its file.
4. Provide a function that will close the window when the opener is closed.

Turkey Shark Crab Spider