Setting a New Window's SizeIn Chapter 6, you learned how to open a link in a new window. JavaScript lets you control how big that window should be. To set the size of a new window:
Figure 20.4. The file name of the document shown here is hawthorne.html. The first part of the JavaScript statement says "keep displaying the hawthorne.html document right where it is". The second part of the JavaScript code says "and then open a window labeled characters that's 150 pixels by 150 pixels, with scrollbars, and display the hester.html file in it".
Figure 20.5. When the visitor clicks a link...
Figure 20.6. ...the link is displayed in the new window. Contrast this example with the one shown in Figure 6.13 on page 108.
Tip
|