August 22, 2001 - Removing the Scrollbar from the Dialog Box | WebReference

August 22, 2001 - Removing the Scrollbar from the Dialog Box

Yehuda Shiran August 22, 2001
Removing the Scrollbar from the Dialog Box
Tips: August 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

By default, a dialog box pops up with a scrollbar, if needed. You can remove them by setting scroll to no:

window.showModalDialog('010822.html','','scroll:no');
Of course, you have to be aware of the consequences for not having a scrollbar of not being able to scroll down the document. The possible values of the scroll property are: yes, no, 1, 0, on, and off. Their semantics are intuitive.

For more on modal and modeless dialog boxes, go to Column 90, Modal and Modeless Dialog Boxes.