Chapter number This object represents a portion of
Chapter number This object represents a portion of the document in the current window that is currently highlighted, having been selected by the user or by a script. The selection is operated on by means of a TextRangeobject. This object is created by calling a createRange() method on the Selection object. This step is necessary because a selection cannot by its very nature persist very long, so a TextRangeobject encapsulates its value into a persistent store so it can be operated on, even though the original selection may have been deselected. In Netscape Navigator, an entirely different technique is used that involves the document.getSelection() method. Because it is easy to deselect the highlighted text by clicking on some other active object in the page, you will need to access the selection inside an event handler that is triggered by the selection action itself. This might be done quite effectively in an onSelectStart handler. Warnings: . Selection objects do not appear to be functional on any version of MSIE for the Macintosh. This may be because the TextRange objects have not been mapped to the Macintosh cut and paste architecture. See also: Document.getSelection(), Document.selection, Password.select(), TextRange object Property JavaScript JScript N IE Opera HTML Notes type 3.0 + 4.0 + - ReadOnly. Method JavaScript JScript N IE Opera HTML Notes clear() 3.0 + 4.0 + - createRange() 3.0 + 4.0 + - empty() 3.0 + 4.0 + - selection.clear() (Method) A method to clear the area selected by the user. Availability: JScript 3.0 Internet Explorer 4.0 JavaScript syntax: IE mySelection.clear() The contects of the current selection are cleared. This is very tricky to do neatly and even harder to accomplish in a portable manner. It is probably better to use the more structured innerHTML and related properties of the DOM hierarchy to accomplish the effects you want. 1906
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision mysql5 web hosting services