isId property (attribute)
Returns whether the current attribute node is an id attribute or not.
Note: The isId property is supported in Safari from version 5.The isId property does not work in XML documents, only in HTML documents. For a cross-browser solution, use the value of the name property instead.
You can find the related objects in the Supported by objects section below.
This property is read-only.
Boolean that indicates whether the current name is an id attribute or not.
One of the following values:
|The attribute is not an id attribute.|
|The attribute is an id attribute.|
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the isId property:
Did you find this example helpful?
User Contributed Comments