tailieunhanh - JavaScript Bible, Gold Edition part 57
JavaScript Bible, Gold Edition part 57. This book will bring programmers and non-technical professionals, including casual programmers and scripters, painlessly up to speed on all aspects of mastering JavaScript. Key topics include programming fundamentals, JavaScript language elements and how to use them effectively, and how to easily and efficiently add powerful new functionality to HTML documents and Java applets. | Body Text Objects A large 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 Range objects 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 TextRange object 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 410 Part III Document Objects Reference BLOCKQUOTE and Q Element Objects For HTML element .
đang nạp các trang xem trước