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


  • #1
    2010-01-24
    [Quote]
    There should be no space between overflow and X, should read overflowX.

    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";
  • javascript manual
    #2
    2010-01-24
    [Quote]
    [Paul S: There should be no space between overflow and X, should read overflowX.Also, for those who ...]
    Thank you. Updated.
Paul S
javascript manual

1881,Nickname,Homepage or email,Comments here,Add comment