Controlling a Web Page's Ability to Resize...

There are times when you want to prevent your user from resizing a web page, and thus you want to avoid including a scroll bar or other resizing elements on the page. As an example, if you create a Widget using HTML, you might want to avoid using a scroll bar. This prevention can be done by simply including the value of toolbar="No" when calling the windows.open routine for creating a new window. The following line of code creates a link that opens up the JavaScripts.com site without a scroll bar:

JavaScripts.com (without a scrollbar)

Granted, this is not necessarily the best use of removing the scroll bars. A more interesting use is with a Widget such as the following small calculator page (limited functionality to show a point):

Calculator (without a scrollbar)

Calculator (with a scrollbar)

The code within the Calculator program is uneventful. What is worth noting is tha the way the information is presented in the two calls. If you viewed the source to this page, you'd see the two links were defined as follows:

Calculator (without a scrollbar)
Calculator (without a scrollbar)

Calculator (with a scrollbar)
Calculator (with a scrollbar)