HELP! * YELLOW=global GREY=local Global HTML version of Foils prepared 21 February 97

Foil 45 Creating New Windows

From Feb 17/19 Delivered Lecture for Course CPS616 -- aJavaScript Language Objects and Frames CPS616 spring 1997 -- Feb 17 and 19 1997. by Geoffrey Fox * Important Information in IMAGE
Secs 93.6
The window object has a method open which allows one to create entirely new windows which are equivalent to cliocking "New Web Browser" on Netscape File Menu
childw = window.open(URL,Largely_Irrelevant_Name, Quite_Important_Features);
The last argument is a set of comma separated options such as
  • toolbar = yes [no]
  • location = yes [no] (display a location bar or not)
  • resizable = on [off] (allow resizing of window)
  • status = yes [no] (display status bar at bottom)
  • menubar = yes [no]
  • directories = yes [no] (display the not so useful directories bar)
  • scrollbars = yes [no] (allow or not scrollbars if needed)
  • width = W; (number of pixels in window width)
  • height = H; (number of pixels)
Javascript in spawned window can access properties of originating window as top.opener


Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Fri Feb 21 1997