tailieunhanh - JavaScript Bible, Gold Edition part 166
JavaScript Bible, Gold Edition part 166. 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. | CD-142 Part VI Appendixes Listing 15-11 continued INPUT TYPE text NAME HTMLInput VALUE I First I Article SPAN CLASS small of ten SPAN SIZE 50 INPUT TYPE button VALUE Change Heading HTML onClick setGroupLabelAsHTML P P INPUT TYPE text NAME textInput VALUE I First I Article SPAN CLASS small of ten SPAN SIZE 50 INPUT TYPE button VALUE Change Heading Text onClick setGroupLabelAsText P FORM H1 ID label1 ARTICLE I H1 P Congress shall make no law respecting an establishment of religion or prohibiting the free exercise thereof or abridging the freedom of speech or of the press or the right of the people peaceably to assemble and to petition the government for a redress of grievances. P BODY HTML isContentEditable NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example Use The Evaluator Chapter 13 to experiment with both the contentEditable and isContentEditable properties on the myP and nested myEM elements reload the page to start with a known version . Check the current setting for the myEM element by typing the following statement into the top text field e emenfOb Appendix F Examples from Parts III and IV CD-143 This value is false because no element upward in the element containment hierarchy is set to be editable yet. Next turn on editing for the surrounding myP element true At this point the entire myP element is editable because its child element is set by default to inherit the edit state of its parent. Prove it by entering the following statement into the top text box While the myEM element is shown to be editable no change has accrued to its contentEditable property This property value remains the default inherit. You can see an additional example of these two properties in use in Listing 15-7. isDisabled NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example Use The Evaluator Chapter 13 to experiment with both the
đang nạp các trang xem trước