om.DomNode.getAttributeString

Returns the value of a DOM node attribute, with default string value.

Syntax

getAttributeString(
   name STRING,
   defaultValue STRING )
  RETURNS STRING
  1. name is the name of the attribute.
  2. defaultValue is the default value.

Usage

The getAttributeString() method returns the value of the attribute passed as parameter, as defined in the current node.

DOM node attribute names are case-sensitive.

If the attribute is not defined, the method returns the default value passed as second parameter.