javascript STYLE overflowX, overflowY
| overflowX, overflowY | NN n/a IE 5(Win) DOM n/a |
|
|
Read/Write |
|
Specify how a positioned element should treat content that extends beyond the horizontal (overflowX) or vertical (overflowY) boundaries established in the style sheet rule. |
|
| Example | |
document.getElementById("myDiv").style.overflowX= "scroll";
|
|
| Value | |
|
Any of the following constants as a string: auto | hidden | scroll | visible. |
|
| Default | |
|
visible |
|
Previous: javascript STYLE padding

Also, for those who want to add a vertical scrollbar to your webpage like in IE, have this line of code after your page is loaded, like at the bottom of your html file:
document.body.style.overflowY = "scroll";
Thank you. Updated.