MSDN Library

IHTMLBodyElement::scroll Property

Sets or gets a value that indicates whether the scroll bars are turned on or off.


HRESULT IHTMLBodyElement::get_scroll(BSTR *p);HRESULT IHTMLBodyElement::put_scroll(BSTR v);


Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
BSTR that specifies one of the values listed in Possible Values.

Possible Values

yes Default. Scroll bars are turned on.
no Scroll bars are turned off.
auto Scroll bars are shown when the page content exceeds the client area.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

CSS Enhancements in Internet Explorer 6

Community Additions

© 2016 Microsoft