You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.


TOC PREV NEXT INDEX

domref



scrolling


The scrolling property specifies whether the current frame should provide scrollbars or not.

Syntax

sBars = frameElement.scrolling
 
frameElement.scrolling = sBars
 

Parameters

sBars is a string with the value "auto", "no," or "yes."

Example

f = document.getElementById("main-frame");
 
f.scrolling = yes;
 

Notes

The default value for this property is "auto," which specifies that scrollbars be added whenever necessary. "yes" means that they are always present, and "no" means that they are never present.

Specification

DOM Level 2 -- HTMLFrameElement


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX