Back to Scripts page
Click in the text area below, select all and copy to grab the script
Script listing:
<HTML> <HEAD> <TITLE>Main Window</TITLE> </HEAD> <BODY BGCOLOR=WHITE> <CENTER> <H1>This window is looping madly!</H1> <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from old browsers 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>