JavaScript for New, Resized Windows, & Closing Buttons
Tutorial 1b
Bob Jensen at Trinity Unversity
Click Here to Return to the JavaScript Tutorial Menu

This document features the JavaScript window.open(Site) and window.close()

toolbar[=yes|no] [=1|0]
location[=yes|no] [=1|0]
directories[=yes|no] [=1|0]
status[=yes|no] [=1|0]
menubar[=yes|no] [=1|0]
scrollbars[=yes|no] [=1|0]
resizable[=yes|no] [=1|0]
width=pixels
height=pixels

 

toolbar creates the standard Navigator toolbar, with buttons such as Back and Forward
location creates a Location entry field such as a http URL
directories creates the standard Navigator directory buttons, such as "What's New"
status creates the status bar at the bottom of the window
menubar creates the menu at the top of the window
scrollbars creates horizontal and vertical scrollbars
resizable allows a user to resize the window
width specifies the width of the window in pixels
height specifies the height of the window in pixels

Click on the Illustrations Below:

New Window 1 (143 pixels wide and 260 pixels high for Murcheson Tower)
winname = name of new window
toolbar =
0 browser toolbar with Back and Forward buttons
resizable =
no means that no resize handles exist for a window
width =
143 = number of pixels wide
height =
220 = number of pixels high

Click Here to View an Excel Graph in a Window With a Closing Buttons
winname = name of new window
toolbar =
0 browser toolbar with Back and Forward buttons
directories = Directory buttons in Navigator (What's Cool, etc.)
status =
No status line
menubar =
No menuline
scrollbars =
No scrollbars
resizable =
1 means that resize handles exist for a window
width =
600 = number of pixels wide
height =
320 = number of pixels high

New Window 3 (Adds a ToolBar and Scrollbars)
winname = name of new window
toolbar =
1 browser toolbar with Back and Forward buttons
scrollbars =
yes scrollbars
resizable =
1 means that resize handles exist for a window
width =
600 = number of pixels wide
height =
200 = number of pixels high

New Window 4 (Adds Menubar at the Top and Statusbar at the Bottom)
winname = name of new window
toolbar =
1 browser toolbar with Back and Forward buttons
status =
yes status line
menubar =
yes menuline
scrollbars =
yes scrollbars
resizable =
1 means that resize handles exist for a window
width =
400 = number of pixels wide
height =
320 = number of pixels high

 

Go to top of this document

Click Here to Return to the JavaScript Tutorial Menu

Java and JavaScript Operators and Expressions

Click Here for JavaScript References

Return to Bob Jensen's Main Index Page