X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM isId Property

Attributes Object Reference Attribute Object

Example

Find out if an attribute is the element's ID attribute or not:

var x = document.getElementById("demo").attributes[0].isId;

The result of x could be:

true

Try it yourself »


Definition and Usage

The isId property returns true if the attribute is of type ID, otherwise it returns false.

This property is read-only.


Browser Support

Property
isId Not supported Not supported Not supported Not supported Not supported

Note: This property was supported in Chrome, Firefox and Safari 5+, but support has been removed.


Syntax

attribute.isId

Technical Details

Return Value: A Boolean, returns true if the attribute is of type ID, otherwise false
DOM Version Core Level 3


Attributes Object Reference Attribute Object


Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook