Back to Scripts page
Click in the box below, select all and copy to grab the script
<HTML> <HEAD> <TITLE>Let's open a big window!</TITLE> </HEAD> <BODY BGCOLOR=WHITE> <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. sWidth = 0 sHeight = 0 if (navigator.appName == "Netscape" && navigator.javaEnabled()) { sWidth = java.awt.Toolkit.getDefaultToolkit().getScreenSize().width sHeight = java.awt.Toolkit.getDefaultToolkit().getScreenSize().height } if (sWidth == 0 || sHeight == 0) { sWidth = 640 sHeight = 480 } document.writeln("<H1>Your screen dimensions are: " + sWidth + " x " + sHeight + ".</H1>") newWin = window.open("","newWin","width=" + sWidth + ",height=" + sHeight) // End hiding script from old browsers --> </SCRIPT> </BODY> </HTML>