Java Reference
In-Depth Information
HTMLElement
HTMLElement is the base object for all HTML elements, much like how Node is the base object for all
DOM nodes. Therefore, all HTML elements have the following properties.
Properties
Property Name
Description
Introduced
className
Gets or sets the value of the element's class attribute.
Level 1
id
Gets or sets the value of the element's id attribute.
Level 1
HTMLAnchorElement
Represents the HTML <a/> element.
Properties
Property Name
Description
Introduced
accessKey
Gets or sets the value of the accessKey attribute
Level 1
href
Gets or sets the value of the href attribute.
Level 1
name
Gets or sets the value of the name attribute.
Level 1
target
Gets or set the value of the target attribute.
Level 1
Methods
Method Name
Description
Introduced
blur()
Removes the keyboard focus from the element.
Level 1
focus()
Gives keyboard focus to the element.
Level 1
HTMLBodyElement
Represents the <body/> element.
Properties
Property Name
Description
Introduced
aLink
Deprecated. Gets or sets the value of the alink attribute.
Level 1
background
Deprecated. Gets or sets the value of the background
attribute.
Level 1
Search WWH ::




Custom Search