Chapter 6: Working with Browser Windows

Return to Chapter 6

 

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.

Updating One Window from Another

See it run: Updating One Window from Another

Script 6.6

This is the HTML for the parent window.

Script 6.7

This is the HTML for the child window.

Script 6.8

This JavaScript is called from both the parent and child windows, and uses information from one window to update another.