The Element object represents an HTML element or tag. IE 4 and later, DOM-compliant browsers such as IE 5 and later, and Netscape 6 and later allow access to every element of a document. They also define the properties and methods listed here on each of those elements. Unfortunately, the methods and properties defined by the IE 4 DOM are not the same as the methods and properties defined by the W3C DOM standard. Because of this incompatibility, they are grouped separately in the following lists.
W3C DOM Properties
In web browsers that support the W3C DOM, all elements in an
HTML document have properties that correspond to their HTML
attributes, including such universal attributes such as
title. When an HTML attribute name consists
accessKey). Two HTML attributes have names
className to refer to the
class attribute of all HTML tags and uses
htmlFor to refer to the
for attribute of
<script> tags. In addition to their
HTML attributes, all elements define the following properties.
Remember also that in DOM-compliant browsers, all HTML elements
inherit the properties of the Node object.
The string value of the
classattribute of the element, which ...