Back to Scripts page
Click in the box below, select all and copy to grab the script
<HTML> <HEAD> <TITLE>Main Window</TITLE> </HEAD> <BODY BGCOLOR=WHITE> <CENTER><H1>This window is looping madly!</H1> <SCRIPT LANGUAGE=JAVASCRIPT> <!-- Hide script from old browsers // This script copyright 1997, Tom Negrino and Dori Smith. // This script is from "JavaScript for the WWW, Visual QuickStart Guide, 2nd Ed." // For more information, see <http://www.chalcedony.com/javascript/>. // This script may be used and modified, but the copyright notice must remain intact. newWindow = window.open('', 'newWin', 'toolbar=yes,location=yes,scrollbars=yes,resizable=yes,width=300,height=300') newWindow.document.write("<HTML><HEAD><TITLE>Generated Window</TITLE></HEAD><BODY BGCOLOR=WHITE><H2>This window shows the result from the other window</H2>") for (i=0; i<100; i++) { newWindow.document.writeln("<BR>The loop is now at: " + i) } newWindow.document.write("</BODY></HTML>") newWindow.document.close() // End hiding script from old browsers --> </SCRIPT> </BODY> </HTML>