JavaScript Tip of the Week for May 20, 1996: All about Windows (no, not the OS) | 3 | WebReference

JavaScript Tip of the Week for May 20, 1996: All about Windows (no, not the OS) | 3

JavaScript Tip of the Weekfor May 20, 1996: How do I make windows?

When you create a window using JavaScript, what you are actually doing is just opening antother browser window. You can set options such as height, width, and whether or not the window will have a status bar or toolbar. In the example below, the window is 350 x 400 pixels in size, the URL of the window is test.html, and all other options, besides scrollbars, are set to no.
    msgWindow=window.open("test.html",
                          "NameofWindow",
                          "toolbar=no,
                           width=350,
                           height=400,
                           directories=no,
                           status=no,
                           scrollbars=yes,
                           resize=no,
                           menubar=no")

To see what this window would look like, press this button:

The HTML file test.html simply said "This is a window created with JavaScript." If you wanted an image in the window, however, you would have to include an absolute reference to the image. This means that if you had a file in your directory called photo.gif, and your homepage was located at "http://www.domain.com/~mypage", the SRC of the IMG tag would have to be "http://www.domain.com/~mypage/photo.gif".

There are many other things that can be done with windows. You can write information to them, such as form data, and you can use them as remotes to navigate around a site. I'm sure there are about a million other ideas for using them, but I'm not going to go over all of them this week. Source