the rectangle that bounds the TextRange object and the left side of the object that contains the TextRange.boundingTopRetrieves the distance between the top edge of the rectangle that bounds the TextRange object and the top side of the object that contains the TextRange. boundingWidthRetrieves the w
now! { var textRange = this.ownerDocument.createRange(); //Using range to retrieve the content of the object textRange.selectNodeContents(this); //only get the content of the object node return textRange.toString(); // give
Creates a TextRange object from the current text selection, or a controlRange collection from a control selection. Syntaxrange = object.createRange()Return ValueReturnsthe created TextRange object.Standards InformationThere is no public standard that applies to this method. Applies Toselection, Sel
Creates a TextRange object for the element.SyntaxoTextRange = object.createTextRange()Return ValueReturnsa TextRange object if successful, or null otherwise. RemarksUse a text range to examine and modify the text within an object.ExamplesThis example uses the createTextRange method to create a text
odDescriptionclearClears the contents of the selection. createRangeCreates a TextRange object from the current text selection, or a controlRange collection from a control selection. createRangeCollectionCreates a TextRange object collection from the current selection. emptyCancels the current selec
ieves a collection of TextRange objects.EventsEventDescriptionontimeerrorFires whenever a time-specific error occurs, usually as a result of setting a property to an invalid value.MethodsMethodDescriptionclearClears the contents of the selection. createRangeCreates a TextRange object from the curre
(textareaObj.createTextRange){ var textRange=textareaObj.createTextRange(); var enterMatch=textareaObj.value.substr(0,maxLength).match(/\n/ig); var enterNum=0; if(enterMatch) enterNum=enterMatch.length textRange.moveStart('character',maxLength-enterNum); textRange.select(); } else { textareaObj.foc