Body Text 19Objects CHAPTER …. Alarge number of HTML elements fall into a catchall category of elements whose purposes are slightly more targeted than contextual elements covered in Chapter 15. In this group are some very widely used elements, such as the H1 through H6 header elements, plus several elements that are not yet widely used because their full support may be lacking in even some of the most modern browsers. In this chapter, you find all sorts of text-related objects, excluding those objects that act as form controls (text boxes and such, which are covered in Chapter 25). For the most part, properties, methods, and event handlers of this chapter s objects are the generic ones covered in Chapter 15. Only those items that are unique to each object are covered in this chapter (as will be the case in all succeeding chapters). Beyond the HTML element objects covered in this chapter, you also meet the TextRange object, first introduced in IE4, and the corresponding Range object from the W3C DOM implemented in NN6. This object is a very powerful one for scripters because it allows scripts to work very closely with body content not in terms of, for example, the innerText or nodeValue properties of elements, but rather in terms of the text as it appears on the page in what users see as paragraphs, lists, and the like. The TextRange and Rangeobjects essentially give your scripts cursor control over running body text for functions, such as cutting, copying, pasting, and applications that extend from those basic operations search and replace, for instance. Bear in mind that everything you read in this chapter requires in the least the dynamic object models of IE4+ and NN6+; some items require IE5+. Unfortunately, the IE TextRangeobject is not implemented in IE5/Mac. In This Chapter Objects that display running body text in documents Using the NN Range and IE TextRange objects Scripting search and replace actions ….
We recommend you use shared web hosting services, because many users agree that it is cheap, reliable and customer-satisfying webhost.