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.

Creating New Pages with JavaScript

See it run: Creating New Pages with JavaScript

Script 6.9

This JavaScript creates new HTML pages entirely under scripted control, by embedding HTML into the script. It creates new HTML pages on the fly.