JavaScript Bible, Gold Edition part 28. 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. | 118 Part 111 Document Objects Reference introduces the concept of editable HTML content on a page. Element tags can include a CONTENTEDITABLE attribute whose value is echoed via the contentEditable property of the element. The default value for this property is inherit which means that the property inherits whatever setting this property has in the hierarchy of HTML containers outward to the body. If you set the contentEditable property to true then that element and all nested elements set to inherit the value become editable conversely a setting of false turns off the option to edit the content. Example with Listing 15-7 on the CD-ROM On the CD-ROm Related Item isContentEditable property. currentstyle Value style object Read-Only NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Every element has style attributes applied to it even if those attributes are the browser s default settings. Because an element s style object reflects only those properties whose corresponding attributes are explicitly set via CSS statements you cannot use the style property of an element object to view default style settings applied to an element. That s where the currentStyle property comes in. This property returns a read-only style object that contains values for every possible style property applicable to the element. If a style property is explicitly set via CSS statement or script adjustment the current reading for that property is also available here. Thus a script can inquire about any property to determine if it should change to meet some scripted design goal. For example if you surround some text with an EM tag the browser by default turns that text into an italic font style. This setting is not reflected in the element s style object fontStyle property because the italic setting was not set via CSS in contrast the element object s property reveals the true current fontStyle property of the element as italic. To change a style property .