Javascript Reference
Categories: BODY

javascript BODY scroll

@July 28, 2009, 8:43 a.m.
scroll Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  

 

Read/Write  

Specifies whether the window (or frame) displays scrollbars when the content exceeds the window size. If your document specifies a standards-compatible DOCTYPE definition, the scroll property does not respond to changes for the body element. Nor does the html element object gain this property, as Microsoft's developer documentation purports.

 
Example
 
document.body.scroll = "no";
 
Value

Not exactly a Boolean value. Requires one of the following string values: yes | no | auto.

 
Default

yes

 


Powered by Linode.