Sets or retrieves whether the scroll bars are displayed.
dhtml语法
HTML | <HTA:APPLICATION SCROLL
= sScroll... >
|
---|
Scripting | [ sScroll = ] HTA:APPLICATION.scroll |
---|
DHTML可能的值
sScroll | Stringthat specifies one of the following values. yes | Default. Scroll bars are displayed. | no | Scroll bars are not displayed. | auto | Scroll bars are displayed only when the content exceeds what can fit in the client area. |
|
The property is read-only.
The property has a default value of
yes.
Remarks
Note The scroll property is read only, however the SCROLL attribute can be used to set the initial value.
Setting the body.scroll property to no is an alternate way to prevent scroll bars from being displayed.
DHTML代码范例
This example shows how to retrieve the scroll property.
<HTML>
<HEAD>
<HTA:APPLICATION
ID=oHTA
SCROLL="no"/>
<TITLE>HTA Properties</TITLE>
<STYLE>
BODY {font-size: 8pt; font-family: Arial;}
</STYLE>
</HEAD>
<SCRIPT>
function readFun()
{
alert("The scroll property is set to: " + oHTA.scroll);
}
</SCRIPT>
<BODY>
<P>Read the property:
<INPUT TYPE="button" VALUE="Test scroll value" onClick="readFun()"/>
</P>
<p>.</p><p>.</p><p>.</p><p>.</p><p>.</p>
<p>.</p><p>.</p><p>.</p><p>.</p><p>scroll down</p>
<p>.</p><p>.</p><p>.</p><p>.</p><p>.</p>
<p>.</p><p>.</p><p>.</p><p>.</p><p>scroll down</p>
<p>.</p><p>.</p><p>.</p><p>.</p><p>.</p>
<p>.</p><p>.</p><p>.</p><p>.</p><p>scroll down</p>
</BODY>
</HTML>
是否符合公共标准
There is no public standard that applies to this property.
Applies To