Find out if an attribute has been specified or not:
The result will be:
The specified property returns true if the attribute is specified.
Returns true also if the attribute has been created but not been attached to an element yet.
Otherwise it returns false.
The specified property is supported in all major browsers.
|Return Value:||Boolean, true|false|
|DOM Version||Core Level 1|
Your message has been sent to W3Schools.