'wrap' Example : wrap « Javascript Properties « JavaScript Reference

'wrap' Example

    
<html>
<body>
<textarea id="W1" rows="4"> Long text . . .  . . . Long text . . . </textarea>
<textarea id="W2" rows="4"> Long text . . .  . . . Long text . . . </textarea>
<textarea id="W3" rows="4"> Long text . . .  . . . Long text . . . </textarea>
<script language="JavaScript">
document.all.W1.wrap = "soft";
document.all.W2.wrap = "hard";
document.all.W3.wrap = "off";
</script>
</body>
</html>

    
      
      








Related examples in the same category

1.'wrap' Syntax and Note
2.'wrap' Possible Values
3.'wrap' is applied to