Find out if an attribute is the element's ID attribute or not:
The result will be:
The isId property returns true if the attribute is of type ID, otherwise it returns false.
![]()
The isId property is supported in all major browsers, except Internet Explorer and Opera.
| Return Value: | Boolean, true|false |
|---|---|
| DOM Version | Core Level 3 |
Your message has been sent to W3Schools.