586 Part III . Document Objects Reference The (Web hosting servers)

586 Part III . Document Objects Reference The displayed size of a TEXTAREA element is defined by its COLSand ROWS attributes, which are represented in the object model by the cols and rows proper ties, respectively. Values for these properties are integers. For cols, the number represents the number of characters that can be displayed without horizontal scrolling of the textarea; for rows, the number is the number of lines of text that can be displayed without vertical scrolling. On the CD-ROM Example on the CD-ROM Related Items: wrap property. wrap Value: String Read/Write Compatibility NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 . IE5 . IE5.5 . The wrap property represents the WRAP attribute, which, surprisingly, is not a W3C-sanctioned attribute as of HTML 4.0. In any case, IE4+ lets you adjust the prop erty by scripting. Allowable string values are soft, hard, and off. The browser adds soft returns (the default in IE) to word-wrap the content, but no carriage return characters are actually inserted into the text. A setting for hard returns means that carriage return characters are added to the text (and would be submit ted with the value to a server CGI). With wrap set to off, text continues to extend beyond the right edge of the textarea until the user manually types the Enter/Return key. Related Items: cols property. Methods createTextRange() Returns: TextRange object. NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . TEXTAREA.createTextRange()
Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.

Leave a Reply