GTi wrote:
To fill in some more information:
This is only for POPUP windows AND for WEB APPLICATIONS.
And the JavaScript is only used to find the best size of the POPUP
window WHITIN maximum bounderies AT startup only. And if the user WANT
to resize the window after the page is loaded the script will NOT
interfer.
There are ways to allow/disallow scrollbars, but I do not recall any
method to query like isScrollbarDisplayed (same as with status bar).
But IMHO you're going from the opposite to the right direction:
scrollbars are not a natural phenomenon but a *consequence* of a
content which is too big for the provided viewport. So instead of study
the consequences you can jump right on the reason:
prepare the layout and find it offsetWidth / offsetHeight; then open
the window of the matching size. If the needed size is beyond the range
you still know in advance that scrollbars will appear - and you know
from what side(s).