474 Part III . Document Objects Reference Syntax (Web space)
474 Part III . Document Objects Reference Syntax Accessing HTML element object properties or methods: (IE4+) [window.]document.all.elemID.property | method([parameters]) (IE5+/NN6) [window.]document.getElementById( elemID ).property | method([parameters]) (IE4+/NN6) [window.]document.body.parentElement.property | method([parameters]) About this object The HTML element is the big wrapper around all other elements of the page. In the object tree, the HTML element sits between the all-encompassing document object and the element s most common children, the HEAD and BODY elements. Other than one deprecated property (version), the HTML element object offers nothing of importance to the scripter with one possible exception. When your script needs to use methods on the child nodes of the HTML element, you must invoke most of those methods from the point of view of the HTML element. Therefore, you should know how to create a reference to the HTML element object (shown in the preceding Syntax section) just in case you need it. Property version Value: String Read-Only NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . The version property is an artifact of an ancient way an HTML document used to specify the HTML version of its content. These days, the preferred way to declare the HTML version for a document is through a Document Type Declaration (DTD) statement that precedes the tag. An example of a modern DTD statement that accommodates HTML 4 plus deprecated elements and attributes as well as frameset support is See http://www.w3.org/TR/REC-html40/struct/global.html#h-7.2for several other possibilities. A DTD statement does not affect the versionproperty of an HTML element object. Related Items: None. HEAD Element Object For HTML element properties, methods, and event handlers, see Chapter 15. HEAD
We recommend high quality webhost to host and run your jsp application: christian web host services.