CD-445Appendix F . Examples from Parts III and (How to cite a web site)
CD-445Appendix F . Examples from Parts III and IV Because the myPtext range is larger than the other, invoke the inRange()method on it, fully expecting the return value of true a.inRange(b) But if you switch the references, you see that the larger text range is not in the smaller one: b.inRange(a) isEqual(otherRangeRef) NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example Use The Evaluator (Chapter 13) to try the isEqual()method. Begin by creating two separate TextRangeobjects, one for the myP element and one for myEM. a = document.body.createTextRange() a.moveToElement(myP) b = document.body.createTextRange() b.moveToElement(myEM) Because these two ranges encompass different sets of text, they are not equal, as the results show from the following statement: a.isEqual(b) But if you now adjust the first range boundaries to surround the myEM element, both ranges are the same values: a.moveToElement(myEM) a.isEqual(b) move( unit [, count]) NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility TextRange.move()
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.