Quirks Mode, IE7 Mode, IE8 Mode, IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)

scroll of type DOMString

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

Possible values are:

  • yes – Default. Scroll bars are turned on.

  • no – Scroll bars are turned off.

  • auto – Scroll bars are displayed when the page content exceeds the client area.

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 Windows Internet Explorer, this attribute applies to the body element, not the html element.

This attribute extends the HTMLBodyElement interface.