A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/html/attributes/wrap below:

wrap ยท WebPlatform Docs

wrap Summary

Sets the wrap style (soft, hard, or off) for a text element.

Applies to dom/HTMLElement

## Examples

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>

View live example

Notes Remarks

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

Related specifications
CSS Text Module Level 3
W3C Working Draft
See also Related pages Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4