最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

WRAP Attribute | wrap Property

Internet Development Index

Sets or retrieves how to handle wordwrapping in the object.

Syntax

HTML<ELEMENT WRAP = sWrap... >
Scriptingobject.wrap [ = sWrap ]

Possible Values

sWrapString that specifies or receives one of the following values.
softDefault. Text is displayed with wordwrapping and submitted without carriage returns and line feeds.
hardText is displayed with wordwrapping and submitted with soft returns and line feeds.
offWordwrapping is disabled. The lines appear exactly as the user types them.

The property is read/write. The property has a default value of soft.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

To detect the difference between soft and hard you must submit the content within the textArea to an HTTP server.

Example

This example dynamically sets the wrap property of a textArea to the value selected by the user.

<SCRIPT>
function ChangeWrap(oSelect, oTA)
{
cValue = oSelect.options(oSelect.selectedIndex).value;
oTA.wrap = cValue;
}
</SCRIPT>
...
<SELECT ID=cboWrap onchange="ChangeWrap(this, txt1)">
<OPTION VALUE=soft>soft
<OPTION VALUE=hard>hard
<OPTION VALUE=off>off
</SELECT>
<P>
<TEXTAREA ID=txt1 STYLE="height:200;width:200"></TEXTAREA>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

There is no public standard that applies to this property.

Applies To

TEXTAREA, PRE
平潭县| 海安县| 吴忠市| 什邡市| 巢湖市| 大余县| 泽库县| 紫阳县| 屏山县| 浦北县| 城固县| 贡觉县| 梁平县| 杨浦区| 门头沟区| 安阳市| 滦南县| 井陉县| 色达县| 顺平县| 贞丰县| 伊春市| 贡嘎县| 如东县| 凤翔县| 鲁甸县| 南靖县| 武夷山市| 库尔勒市| 洪湖市| 大新县| 苗栗县| 廉江市| 军事| 建宁县| 德江县| 青龙| 昌图县| 永丰县| 上栗县| 旌德县|