Web hosts - 465Chapter 19 .Body Text Objects On the Example
Friday, July 27th, 2007465Chapter 19 .Body Text Objects On the Example on the CD-ROM CD-ROM Related Items: TextRange.moveEnd(), TextRange.moveStart() methods. moveEnd( unit [, count]) moveStart( unit [, count]) Returns: Integer. NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . . The moveEnd() and moveStart()methods are similar to the move()method, but they each act only on the end and starting points of the current range, respectively. In other words, the range does not collapse before the point is moved. These methods allow you to expand or shrink a range by a specific number of units by moving only one of the range s boundaries. The first parameter is a string specifying the desired unit (character, word, sentence, or textedit). A value of textedit moves the pointer to the beginning or end of the entire initial text range. Therefore, if you want the end point of the current range to zip to the end of the body (or text form control), use moveEnd( textedit ). If you omit the second parameter, the default value is 1. Otherwise you can specify an integer indicating the number of units the collapsed range is to move ahead (positive integer) or backward (negative). Moving either point beyond the location of the other forces the range to collapse and move to the location specified by the method. The method returns an integer revealing the exact number of units the pointer is able to move if you specify more units than are available, the returned value lets you know how far it can go. On the Example on the CD-ROM CD-ROM Related Items: TextRange.move() method. moveToBookmark( bookmarkString ) Returns: Boolean. NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . . If a snapshot of a text range specification has been preserved in a variable (with the help of the getBookmark()method), the moveToBookmark() method uses that TextRange.moveToBookmark()
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.