JavaScript DOM HTML method: getAttributeNode()
[this page | pdf | back links]
The getAttributeNode() method (when
applied to HTML
elements in the JavaScript
DOM) returns
the specified attribute
node.
It
has the following syntax with the following parameters. It returns an Attr
object representing the specified attribute. If the attribute does not exist
then the return value will be null
or an empty string, i.e. "".
element.getAttributeNode(attributename)
Parameter
|
Required / Optional
|
Description
|
attributename
|
Required
|
String containing name
of attribute
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)