JavaScript to Open and Then Write to a New Browser Window

This script simply opens a new browser window with both a location and a status line to display a document that is "written on the fly" to it by JavaScript when the button below is clicked.

Note: since the user may not close this browser window when finished, but simply click on the still visible browser window behind it, an alert is used to force the window to the front if it is still in existence (behind the big browser) when the button is clicked.

 
  
 
Copy-N-Paste Window

Simply copy (type Control-c or Apple-c) the script from the window below. Then paste it (type Control-v or Apple-v) into your text editor and save (Control-s or Apple-s).