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

Home
JavaScript Reference
1.Event Handlers Reference
2.Javascript Collections
3.Javascript Methods
4.Javascript Objects
5.Javascript Properties
JavaScript Reference » Javascript Properties » wrap 
'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
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.