THIS OUGHT TO BE SIMPLE  but can anyone figure out a GENERAL  method of
determining which scrollbars are currently displayed. ( active)

(document.height and width properties are not appropriate for xml documents
and computed style assumes you know the root tag)

It appears that pageYOffset and pageXOffset provide a basis for an (awful)
answer

i.e. scroll the current content by one pixel and then check the new offset
value. If the new value is zero
then  no scrollbar is displayed. If non-zero then the content has scrolled
and
needs to be reset back to its original value.

The problem here is that the checking is done via the onoverflow or
underflow
event. The process of restoring the original value at document extremities
may
cause unpredictable effects ( an infinite loop of scroll tests)

SURELY there is  a  better javascript test???






Reply via email to