8 out of 15 rated this helpful - Rate this topic

scroll attribute | scroll property

[This documentation is preliminary and is subject to change.]

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

Syntax

HTML<element scroll="p" ... >
JavaScript

p = object.scroll

Property values

Type: String

one of the following 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.

Remarks

With Microsoft 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 Windows Internet Explorer, this attribute applies to the BODY element, not the HTML element.

See also

body
html
CSS Enhancements in Internet Explorer 6

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Stopped working since IE8; does not apply to HTML elements
This property/attribute no longer works since IE8 standards mode. Also, this property does not _apply_ to the HTML element, only the BODY element.
anomaly - override - window-zoom-level

SCROLL=NO does-not prevent window-zoom-level (statusbar lower right) from putting-on horizontal scrollbars ....

(e.g. zoomed-in HD-narrowed pages scrollbar horizontally into colorspace at-whim).