Full version: jsB@nk » Browser » Window » Window Resize
URL: https://www.javascriptbank.com/window-resize.html
View your Web pages in different size windows. This JavaScript will open a new, resized window using the measurements (in pixels) you choose. Small but effective.
Full version: jsB@nk » Browser » Window » Window Resize
URL: https://www.javascriptbank.com/window-resize.html
<SCRIPT LANGUAGE="JavaScript">// Jeff Manning// http://liveing-sacrifice.beplaced.com/sizer.html<!-- Beginfunction regular() {window.open('Window_Resize.htm','640x480','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=640,height=480')}function large() {window.open('Window_Resize.htm','800x600','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=800,height=600')}function smallmacdefault() {window.open('Window_Resize.htm','Mac','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=470,height=300')}function smallpcdefault() {window.open('Window_Resize.htm','PC','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=580,height=300')}function mediummacdefault() {window.open('Window_Resize.htm','Mac','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=470,height=430')}function mediumpcdefault() {window.open('Window_Resize.htm','PC','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=580,height=430')}function largemacdefault() {window.open('Window_Resize.htm','Mac','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=470,height=600')}function largepcdefault() {window.open('Window_Resize.htm','PC','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=580,height=600')}// End --></SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<FORM>Open a window 640 x 480 pixels: <INPUT TYPE=BUTTON VALUE="640x480" onClick="regular()"><P>Open a window 800 x 600 pixels: <INPUT TYPE=BUTTON VALUE="800x600" onClick="large()"><P><HR><P>Default Netscape Browser sizes:<P><B>640 x 480</B><BR>Mac = 470x300: <INPUT TYPE=BUTTON VALUE="Mac" onClick="smallmacdefault()"><BR>PC = 580x300: <INPUT TYPE=BUTTON VALUE="PC" onClick="smallpcdefault()"><P><B>800 x 600</B><BR>Mac = 470x430: <INPUT TYPE=BUTTON VALUE="Mac" onClick="mediummacdefault()"><BR>PC = 580x430: <INPUT TYPE=BUTTON VALUE="PC" onClick="mediumpcdefault"><P><B>1024 x 768</B><BR>Mac = 470x600: <INPUT TYPE=BUTTON VALUE="Mac" onClick="largemacdefault()"><BR>PC = 580x600: <INPUT TYPE=BUTTON VALUE="PC" onClick="largepcdefault()"><P><P><HR><P>Close this Window: <INPUT TYPE=BUTTON VALUE="Close"onClick="window.close()"></FORM><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->