hasAttributes

The hasAttributes JS Element returns true if element has attributes; otherwise false.

Syntax

element.hasAttributes()

Examples

1 · false

2 · true

HomeMenu