JavaScript to Open a New Browser Window

This script simply opens a new browser window to display a document named "apage.htm" with both a location and a status line when the button below is clicked.

NOTE: For this demo, since "apage.htm" does not exist, the window will be opened with an alert message that Netscape can't find the file.

 
  
 
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).