SCROLL Attribute | scroll Property

Internet Development Index

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

What's New for Microsoft® Internet Explorer 6

When you use the !DOCTYPE declaration to specify standards-compliant mode, this attribute applies to the HTML element.

Syntax

HTML<ELEMENT SCROLL = sScroll... >
Scriptingobject.scroll [ = sScroll ]

Possible Values

sScrollString that specifies or receives one of the following values:
yesDefault. Scroll bars are turned on.
noScroll bars are turned off.
autoScroll bars are shown when the page content exceeds the client area.

The property is read/write. The property has a default value of yes.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

  With Internet Explorer 6 and later, when you use the !DOCTYPE declaration to specify standards-compliant mode, this attribute applies to the HTML element. When standards-compliant mode is not specified, as with earlier versions of Internet Explorer, this attribute applies to the BODY element, not the HTML element.

Standards Information

There is no public standard that applies to this property.

Applies To

BODY, HTML

See Also

CSS Enhancements in Internet Explorer 6