Style overflowY Property
Example
Provide vertical scrolling if the text overflows the element's content area:
document.getElementById("myDIV").style.overflowY="scroll";
Try it »
Definition and Usage
The overflowY property specifies whether to clip the top/bottom edges of the content - if the content overflows the element's content area.
**Tip:** Please use overflowX Property to determine the clipping of the left/right edges.
Browser support

All major browsers support the overflowY property.
**Note:** The overflowY property has no effect in IE8 and earlier versions.
Syntax
Return the overflowY property:
object
.style.overflowY
Set the overflowY property:
object
.style.overflowY="visible|hidden|scroll|auto|initial|inherit"
Attribute values
| Value | Description |
|---|---|
| visible | Content is not clipped and may be displayed outside the content box. |
| hidden | Content is clipped, and no scrolling mechanism is provided. |
| scroll | Content is clipped, and a scrolling mechanism is provided. |
| auto | If the box overflows, a scrolling mechanism should be provided. |
| initial | Sets this property to its default value. See initial. |
| inherit | Inherits this property from its parent element. See inherit. |
Technical Details
| Default value: | visible |
|---|---|
| Return Value: | A string representing the element's overflow-y property. |
| CSS version | CSS3 |
Related Articles
CSS Reference Manual:overflow-y property
The Style object