143Chapter 15 .Generic HTML Element Objects returns contains

143Chapter 15 .Generic HTML Element Objects returns contains all style attributes and the default settings at the time the page loads. This property does not reflect values assigned to elements by style sheets in the document or by scripts. The default values returned by this property differ from the values returned by the currentStyleproperty. The latter includes data about values that are not assigned explicitly by style sheets, yet are influenced by the default behavior of the browser s rendering engine. In contrast, the runtimeStyle property shows unassigned style values as empty or zero. To change a style property setting, access it via the element s style object. Example on the CD-ROM Related Items: currentStyle property; style object (Chapter 30). scopeName Value: String Read-Only NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility The scopeName property is associated primarily with XML that is embedded within a document. When you include XML, you can specify one or more XML Namespaces that define the owner of a custom tag name, thus aiming toward preventing conflicts of identical custom tags from different sources in a document. (See Chapter 33 for more about XML objects.) The XML Namespace is assigned (in IE5+) as an attribute of the tag that surrounds the entire document: After that, the Namespace value precedes all custom tags linked to that Namespace: To find out the Namespace owner of an element, you can read the scopeName property of that element. For the preceding example, the scopeNamereturns Fred. For regular HTML elements, the returned value is always HTML. The scopeName property is available only in Win32 and UNIX flavors of IE5. The comparable property in the W3C DOM is localName. Example on the CD-ROM Related Item: tagUrn property. On the CD-ROM On the CD-ROM elementObject.scopeName
If you are in need for cheap and reliable webhost to host your website, we recommend http web server services.

Leave a Reply